/* ============================================
   Pen Cloud Academy — Auth Pages Styles
   Login, Register, Password Reset
   ============================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left panel — branding */
.auth-brand {
  background: var(--color-dark);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(254, 85, 36, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.auth-brand .logo {
  color: var(--color-white);
  margin-bottom: 48px;
}

.auth-brand h1 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.auth-brand h1 span {
  color: var(--color-orange);
}

.auth-brand p {
  color: var(--color-gray-300);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-gray-300);
  font-size: 0.9375rem;
}

.auth-feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(254, 85, 36, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-orange);
  flex-shrink: 0;
}

/* Right panel — form */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--color-cream);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  margin-bottom: 32px;
}

.auth-form-header h2 {
  margin-bottom: 8px;
}

.auth-form-header p {
  color: var(--color-gray-500);
}

.auth-form-header p a {
  color: var(--color-orange);
  font-weight: 600;
}

.auth-form-header p a:hover {
  text-decoration: underline;
}

.auth-form .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--color-gray-500);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gray-300);
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.875rem;
  color: var(--color-orange);
  font-weight: 500;
  margin-top: -8px;
  margin-bottom: 16px;
}

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

/* Password strength indicator */
.password-strength {
  height: 4px;
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  margin-top: 8px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  border-radius: var(--radius-full);
  transition: width var(--transition-base), background var(--transition-base);
}

.password-strength-bar.weak { width: 33%; background: var(--color-error); }
.password-strength-bar.medium { width: 66%; background: var(--color-warning); }
.password-strength-bar.strong { width: 100%; background: var(--color-success); }

/* Reset password modal on auth pages */
.reset-form {
  display: none;
}

.reset-form.active {
  display: block;
}

.login-form.hidden {
  display: none;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .auth-form-panel {
    min-height: 100vh;
  }
}

@media (max-width: 480px) {
  .auth-form-panel {
    padding: 32px 20px;
  }
}
