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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #0a0a0f;
  color: #ffffff;
}

.auth-page {
  display: flex;
  min-height: 100vh;
}

/* Left panel */
.auth-left {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 60px;
}

.logo-mark {
  color: #7c5cff;
  font-size: 24px;
}

.auth-left h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.auth-left h1 span {
  color: #9b7bff;
}

.auth-left p.lead {
  color: #a0a0b0;
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 480px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background-color: #1a1a28;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9b7bff;
  font-size: 18px;
}

.feature-text h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 13px;
  color: #80808f;
}

/* Right panel */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: #0d0d14;
}

.auth-form-box {
  width: 100%;
  max-width: 420px;
  background-color: #13131c;
  border: 1px solid #24242f;
  border-radius: 16px;
  padding: 40px;
}

.auth-form-box h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.auth-form-box .subtitle {
  color: #80808f;
  font-size: 14px;
  margin-bottom: 28px;
}

label {
  display: block;
  font-size: 13px;
  color: #c0c0cc;
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
  margin-bottom: 18px;
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  padding: 12px 14px;
  background-color: #1a1a26;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
}

.input-wrap input:focus,
.input-wrap select:focus {
  outline: none;
  border-color: #7c5cff;
}

.form-footer-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.form-footer-row a {
  color: #9b7bff;
  font-size: 13px;
  text-decoration: none;
}

button.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: #6c47ff;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button.submit-btn:hover {
  background-color: #5a38e6;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #60606e;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #24242f;
}

.oauth-btn {
  width: 100%;
  padding: 12px;
  background-color: #1a1a26;
  border: 1px solid #2a2a38;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.oauth-btn:hover {
  background-color: #21212e;
}

.switch-auth {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #80808f;
}

.switch-auth a {
  color: #9b7bff;
  text-decoration: none;
}

.error {
  color: #ff6b6b;
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
}
.feature-icon i { width: 20px; height: 20px; }

.logo-mark { display: inline-flex; align-items: center; }
.logo-mark i { width: 22px; height: 22px; }

.input-wrap { position: relative; }

.input-wrap .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #5c5c6b;
  display: flex;
}

.input-wrap .input-icon i { width: 18px; height: 18px; }

.input-wrap input.has-icon { padding-left: 40px; }

.oauth-btn i { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .auth-left {
    display: none;
  }
}
/* Phones — tighten spacing + stop iOS input zoom */
@media (max-width: 600px) {
  .auth-right {
    padding: 24px 16px;
  }

  .auth-form-box {
    padding: 28px 22px;
    border-radius: 12px;
  }

  .auth-form-box h2 {
    font-size: 22px;
  }

  /* 16px minimum stops iOS Safari from auto-zooming on focus */
  .input-wrap input,
  .input-wrap select {
    font-size: 16px;
  }
}
/* Remember me row */
.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c0c0cc;
  cursor: pointer;
}

.remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6c47ff;
  cursor: pointer;
}
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #5c5c6b;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.toggle-password:hover { color: #9b7bff; }
.toggle-password i { width: 18px; height: 18px; }

.input-wrap input.has-icon[id="password"] { padding-right: 40px; }
.terms-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}
.terms-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #6c47ff;
  cursor: pointer;
  flex-shrink: 0;
}
.terms-checkbox-row label {
  font-size: 13px;
  color: #a0a0b0;
  line-height: 1.5;
}
.terms-checkbox-row label a {
  color: #9b7bff;
  text-decoration: none;
}
.terms-checkbox-row label a:hover {
  color: #b39dff;
}