*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  display: flex;
  background: #f4f5f7;
}

/* -- Kiri: ilustrasi / brand -- */
.login-left {
  flex: 0 0 420px;
  background: #1d2127;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--p);
  opacity: 0.06;
  top: -100px;
  right: -80px;
}

.login-left::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--p);
  opacity: 0.05;
  bottom: -60px;
  left: -60px;
}

.left-logo {
  width: 72px;
  height: 72px;
  color: var(--p);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.left-logo svg {
  width: 100%;
  height: 100%;
}

.left-title {
  color: #fff;
  height: 28px;
  position: relative;
  z-index: 1;
}

.left-title svg {
  height: 100%;
  width: auto;
}

.left-tagline {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.left-divider {
  width: 40px;
  height: 2px;
  background: var(--p);
  margin: 28px auto;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

.left-feature {
  list-style: none;
  width: 100%;
  position: relative;
  z-index: 1;
}

.left-feature li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  padding: 7px 0;
}

.left-feature li i {
  color: var(--p);
  width: 16px;
}

/* -- Kanan: form -- */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1d2127;
  margin-bottom: 6px;
}

.login-card .subtitle {
  font-size: 13px;
  color: #8a9099;
  margin-bottom: 32px;
}

/* Form */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
  margin-bottom: 6px;
}

input[type=email],
input[type=password],
input[type=text] {
  width: 100%;
  border: 1.5px solid #eaecf0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  color: #344054;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px var(--p-lt);
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 42px;
}

.toggle-pw {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a9099;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 14px;
  transition: color 0.2s;
}

.toggle-pw:hover {
  color: var(--p);
}

.form-row {
  margin-bottom: 18px;
}

.row-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.check-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.check-wrap input {
  accent-color: var(--p);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.check-wrap label {
  margin: 0;
  font-weight: 400;
  color: #667085;
  cursor: pointer;
}

.forgot {
  font-size: 13px;
  color: var(--p);
  font-weight: 500;
  text-decoration: none;
}

.forgot:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  background: var(--p);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover {
  opacity: 0.9;
}

.btn-login:active {
  transform: scale(0.98);
}

.btn-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Alert */
.alert-err {
  background: #fff1f0;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  color: #991b1b;
  font-size: 13px;
  padding: 11px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.alert-err i {
  margin-top: 1px;
  flex-shrink: 0;
}

.login-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #aab0bb;
}

@media (max-width: 768px) {
  .login-left {
    display: none;
  }
}
