/* ============================================
   AgroLink Africa — Auth Pages Styles
   ============================================ */

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

.auth-left {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 60%, var(--primary-600) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--sp-12);
  color: white;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249,168,37,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.auth-left__content {
  max-width: 440px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-left__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--sp-8);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
}

.auth-left__icon svg {
  width: 40px;
  height: 40px;
  color: var(--accent-400);
}

.auth-left h2 {
  color: white;
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-4);
}

.auth-left p {
  color: var(--primary-200);
  font-size: var(--text-base);
  line-height: 1.7;
}

.auth-left__features {
  margin-top: var(--sp-8);
  text-align: left;
}

.auth-left__feature {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  color: var(--primary-100);
  font-size: var(--text-sm);
}

.auth-left__feature svg {
  width: 20px;
  height: 20px;
  color: var(--accent-400);
  flex-shrink: 0;
}

/* Auth Right (Form) */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12);
  background: var(--bg);
}

.auth-form-wrapper {
  width: 100%;
  max-width: 440px;
}

.auth-form-header {
  margin-bottom: var(--sp-8);
}

.auth-form-header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--primary-700);
  margin-bottom: var(--sp-6);
}

.auth-form-header__logo span {
  color: var(--accent-500);
}

.auth-form-header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-2);
}

.auth-form-header p {
  font-size: var(--text-sm);
  color: var(--text-sec);
}

.auth-form {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.auth-form__divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}

.auth-form__divider::before,
.auth-form__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-form__divider span {
  font-size: var(--text-xs);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-form__footer {
  text-align: center;
  margin-top: var(--sp-6);
  font-size: var(--text-sm);
  color: var(--text-sec);
}

.auth-form__footer a {
  color: var(--primary-700);
  font-weight: 600;
}

.auth-form__footer a:hover {
  text-decoration: underline;
}

.auth-form__role-switch {
  display: flex;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--sp-6);
}

.auth-form__role-btn {
  flex: 1;
  padding: var(--sp-3);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-sec);
}

.auth-form__role-btn.active {
  background: white;
  color: var(--primary-700);
  box-shadow: var(--shadow-sm);
}

/* Forgot password link */
.auth-form__forgot {
  display: block;
  text-align: right;
  font-size: var(--text-sm);
  color: var(--primary-500);
  margin-top: var(--sp-2);
  font-weight: 500;
}

.auth-form__forgot:hover {
  text-decoration: underline;
}

/* Social login buttons */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  border-color: var(--text-light);
  background: var(--bg-alt);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* Input Wrapper with Icon */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .form-input {
  padding-left: var(--sp-10);
}

.input-wrapper .input-icon {
  position: absolute;
  left: var(--sp-3);
  width: 20px;
  height: 20px;
  color: var(--text-light);
  pointer-events: none;
}

.eye-toggle {
  position: absolute;
  right: var(--sp-3);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.eye-toggle:hover {
  background: var(--bg-alt);
  color: var(--text-sec);
}

.eye-toggle svg {
  width: 20px;
  height: 20px;
}

/* Terms text */
.auth-terms {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-top: var(--sp-4);
}

.auth-terms a {
  color: var(--primary-500);
  font-weight: 500;
}

.auth-terms a:hover {
  text-decoration: underline;
}

/* Auth subtitle */
.auth-subtitle {
  font-size: var(--text-sm);
  color: var(--text-sec);
  margin-bottom: var(--sp-6);
}

/* Forgot link */
.forgot-link {
  font-size: var(--text-sm);
  color: var(--primary-500);
  font-weight: 500;
  display: inline-block;
}

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

.form-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--sp-5);
}

/* Background image for auth left */
.auth-left--image {
  background-size: cover;
  background-position: center;
  position: relative;
}

.auth-left--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,59,15,0.92) 0%, rgba(27,94,32,0.88) 100%);
}

.auth-left--image > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .auth-layout {
    flex-direction: column;
  }

  .auth-left {
    padding: var(--sp-8) var(--sp-6);
    min-height: auto;
  }

  .auth-left__features {
    display: none;
  }

  .auth-right {
    padding: var(--sp-6);
  }

  .auth-form {
    padding: var(--sp-6);
  }
}
