/* ==========================================================================
   Modern Auth Pages Design System (Login, Register, Forgot Password)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --auth-font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --auth-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --auth-primary: #2563eb;
  --auth-primary-dark: #1d4ed8;
  --auth-primary-light: #60a5fa;
  --auth-teal: #0d9488;
  --auth-emerald: #10b981;
  --auth-dark-bg: #0b1120;
  --auth-dark-surface: #0f172a;
  --auth-dark-card: #1e293b;
  --auth-border-subtle: rgba(255, 255, 255, 0.08);
  --auth-text-muted: #64748b;
  --auth-text-heading: #0f172a;
  --auth-input-bg: #f8fafc;
  --auth-input-border: #e2e8f0;
}

/* Page Wrapper */
.auth-page-wrapper.auth-modern-wrapper {
  background-color: var(--auth-dark-bg);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(13, 148, 136, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  min-height: 100vh;
  position: relative;
  font-family: var(--auth-font-body);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1rem;
}

/* Background Ambient Orbs */
.auth-page-wrapper.auth-modern-wrapper::before,
.auth-page-wrapper.auth-modern-wrapper::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.auth-page-wrapper.auth-modern-wrapper::before {
  top: 8%;
  left: 5%;
  width: 320px;
  height: 320px;
  background: rgba(37, 99, 235, 0.22);
  animation: authGlowFloat 14s ease-in-out infinite alternate;
}
.auth-page-wrapper.auth-modern-wrapper::after {
  bottom: 8%;
  right: 5%;
  width: 360px;
  height: 360px;
  background: rgba(13, 148, 136, 0.18);
  animation: authGlowFloat 18s ease-in-out infinite alternate-reverse;
}

@keyframes authGlowFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Card Container */
.auth-modern-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 20px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Left Showcase Panel */
.auth-modern-brand {
  position: relative;
  background: linear-gradient(155deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  color: #ffffff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  overflow: hidden;
}

.auth-modern-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.28) 0%, transparent 50%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.auth-modern-brand .brand-header {
  position: relative;
  z-index: 2;
}

.auth-modern-brand .brand-logo {
  max-width: 155px;
  height: auto;
  transition: transform 0.25s ease;
}
.auth-modern-brand .brand-logo:hover {
  transform: translateY(-2px);
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.auth-features-list {
  position: relative;
  z-index: 2;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.auth-feature-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateX(4px);
}

.auth-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(13, 148, 136, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.auth-feature-title {
  font-family: var(--auth-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.15rem;
}

.auth-feature-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.35;
  margin: 0;
}

/* Modern Testimonial Box inside brand column */
.auth-testimonial-box {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  backdrop-filter: blur(12px);
  margin-top: auto;
}

.auth-testimonial-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.auth-testimonial-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.auth-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.auth-author-info {
  line-height: 1.2;
}
.auth-author-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #f8fafc;
}
.auth-author-role {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Right Form Pane */
.auth-modern-form-pane {
  padding: 3rem 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.auth-header-title {
  font-family: var(--auth-font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--auth-text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.auth-header-subtitle {
  color: var(--auth-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

/* Input Fields & Groups */
.auth-input-group {
  position: relative;
  margin-bottom: 1.15rem;
}

.auth-form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 0.45rem;
  display: block;
}

.auth-form-control {
  width: 100%;
  height: 48px;
  padding: 0.65rem 1rem 0.65rem 2.65rem;
  background: var(--auth-input-bg);
  border: 1.5px solid var(--auth-input-border);
  border-radius: 12px;
  font-size: 0.92rem;
  color: #1e293b;
  font-family: var(--auth-font-body);
  transition: all 0.22s ease-in-out;
}

.auth-form-control:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.auth-form-control:focus {
  background: #ffffff;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.auth-input-icon {
  position: absolute;
  left: 1rem;
  top: 12px;
  color: #94a3b8;
  font-size: 1.15rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.auth-form-control:focus ~ .auth-input-icon,
.auth-input-group:focus-within .auth-input-icon {
  color: var(--auth-primary);
}

.auth-password-toggle {
  position: absolute;
  right: 0.6rem;
  top: 0;
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: #94a3b8;
  font-size: 1.15rem;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease;
}
.auth-password-toggle:hover {
  color: #334155;
}

/* Submit Action Button */
.btn-auth-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--auth-font-display);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-auth-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-auth-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.6rem 0;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider::before {
  margin-right: 0.85em;
}

.auth-divider::after {
  margin-left: 0.85em;
}

/* Social Buttons */
.auth-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.auth-fb-btn {
  height: 40px;
  background: #1877f2;
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}
.auth-fb-btn:hover {
  background: #166fe5;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Modern Checkbox */
.auth-modern-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.auth-modern-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  accent-color: var(--auth-primary);
  cursor: pointer;
}
.auth-modern-check label {
  font-size: 0.87rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

/* Links & Help text */
.auth-link {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.auth-link:hover {
  color: var(--auth-primary-dark);
  text-decoration: underline;
}

.auth-footer-prompt {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

/* Error text styling */
.err,
.text-danger {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

/* Page bottom copyright footer */
.auth-footer-modern {
  margin-top: 2rem;
  color: #94a3b8;
  font-size: 0.82rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
  .auth-page-wrapper.auth-modern-wrapper {
    padding: 1.5rem 0.75rem;
  }
  .auth-modern-brand {
    padding: 2.25rem 1.75rem;
  }
  .auth-features-list {
    margin: 1.5rem 0;
    gap: 0.85rem;
  }
  .auth-modern-form-pane {
    padding: 2.25rem 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .auth-modern-card {
    border-radius: 18px;
  }
  .auth-header-title {
    font-size: 1.5rem;
  }
  .auth-modern-form-pane {
    padding: 1.75rem 1.25rem;
  }
  .auth-social-row {
    flex-direction: column;
    width: 100%;
  }
  .auth-social-row .g_id_signin,
  .auth-social-row .auth-fb-btn {
    width: 100%;
    justify-content: center;
  }
}
