/* ================================
   AUTHENTICATION PAGES
   ================================ */

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

/* Left Side - Brand */
.auth-brand {
  flex: 1;
  background: var(--sky);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30,58,138,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(30,58,138,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.auth-brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
}
.auth-brand .logo {
  justify-content: center;
  margin-bottom: 32px;
}
.auth-brand .logo-icon,
.auth-brand .logo-text {
  color: #fff;
}
.auth-brand-title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
}
.auth-brand-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  line-height: 1.6;
}
.auth-brand-img {
  max-width: 320px;
  margin-top: 48px;
  opacity: 0.8;
  border-radius: 12px;
}

/* Right Side - Form */
.auth-form-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  background: var(--bg-primary);
  overflow-y: auto;
}
.auth-form-container {
  width: 100%;
  max-width: 420px;
}
.auth-mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 24px;
}
.auth-form-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}
.auth-form-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 32px;
}
.auth-form {
  width: 100%;
}
.auth-link {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 24px;
}
.auth-link a {
  color: var(--text-primary);
  font-weight: 600;
}
.auth-link a:hover {
  text-decoration: underline;
}
.strength-bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--border-color);
}
.strength-bar-fill {
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 2px;
}
.strength-weak { background: var(--error); }
.strength-medium { background: var(--warning); }
.strength-strong { background: var(--success); }
.strength-label {
  font-size: 12px;
  margin-top: 4px;
  color: var(--muted);
}

/* Checkbox row */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.form-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--sky);
}
.form-link {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}
.form-link:hover {
  text-decoration: underline;
}

/* Success message */
.auth-success {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 20px;
}

/* Danger zone */
.danger-zone {
  border: 1px solid var(--error);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
  background: rgba(196, 32, 44, 0.05);
}

/* ================================
   TERMS CHECKBOX
   ================================ */

.terms-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.terms-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  accent-color: var(--primary);
  cursor: pointer;
}
.terms-checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

/* ================================
   MOBILE RESPONSIVENESS - AUTH PAGES
   ================================ */

@media (max-width: 1023px) {
  .auth-brand {
    display: none;
  }
  .auth-form-side {
    padding: 40px 32px;
  }
  .auth-mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
  }
  .auth-form-container {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .auth-page {
    display: block;
  }
  .auth-form-side {
    padding: 24px 20px;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 40px;
  }
  .auth-mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
  }
  .auth-form-title {
    font-size: 24px;
  }
  .auth-form-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
  }
  .auth-form-container {
    max-width: 100%;
  }
  .form-input {
    font-size: 16px !important;
    height: 48px;
  }
  .form-group {
    margin-bottom: 16px;
  }
  .form-label {
    font-size: 12px;
  }
  .btn {
    padding: 14px 24px;
    font-size: 15px;
    width: 100%;
  }
  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .auth-link {
    font-size: 13px;
    margin-top: 20px;
  }
  .strength-bar {
    margin-top: 6px;
  }
  .danger-zone {
    padding: 16px;
  }
  .auth-success {
    padding: 12px;
    font-size: 13px;
  }
}

@media (max-width: 479px) {
  .auth-form-side {
    padding: 20px 16px;
    padding-top: 32px;
  }
  .auth-form-title {
    font-size: 22px;
  }
  .auth-mobile-logo svg {
    width: 40px;
    height: 40px;
  }
}
