/* ==========================================================================
   EduPeak E-Learning - Standalone Authentication Pages (Login & Register)
   Theme: eWings Blue (#227AFF, #EFF5FF, #1565D8, #0F172A, #FFFFFF)
   ========================================================================== */

.auth-page-body {
  min-height: 100vh;
  background: #f8faff;
  color: var(--text-main);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Auth Top Navigation Header */
.auth-top-header {
  height: 4.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.auth-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.auth-back-link:hover {
  color: var(--primary);
  transform: translateX(-3px);
}

/* Main Split Layout Container */
.auth-main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 1;
}

.auth-card-layout {
  width: 100%;
  max-width: 1100px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px -15px rgba(34, 122, 255, 0.12), 0 0 1px 1px rgba(34, 122, 255, 0.05);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  overflow: hidden;
}

.auth-card-layout.register-layout {
  max-width: 1180px;
  grid-template-columns: 1fr 1.25fr;
}

/* Left Brand Showcase Banner */
.auth-showcase-side {
  background: linear-gradient(145deg, #0f172a 0%, #1565d8 100%);
  padding: 3.5rem 2.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-showcase-side::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(34, 122, 255, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-showcase-side::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.showcase-content {
  position: relative;
  z-index: 2;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 1.5rem;
}

.showcase-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1rem;
}

.showcase-desc {
  font-size: 0.925rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.showcase-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.showcase-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.showcase-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(34, 122, 255, 0.3);
  border: 1px solid rgba(34, 122, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Testimonial Quote on Showcase */
.showcase-testimonial {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  z-index: 2;
}

.testimonial-quote {
  font-size: 0.85rem;
  color: #f1f5f9;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

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

.testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
}

.testimonial-info h5 {
  font-size: 0.825rem;
  color: #ffffff;
  margin: 0;
}

.testimonial-info p {
  font-size: 0.725rem;
  color: #94a3b8;
  margin: 0;
}

/* Right Form Side */
.auth-form-side {
  padding: 3rem 2.5rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.auth-form-side.register-side {
  padding: 2.75rem 2.5rem;
}

.auth-form-header {
  margin-bottom: 1.75rem;
}

.auth-form-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.auth-form-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-error-alert {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}

.auth-success-alert {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
}

.btn-google-auth {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: var(--text-main) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}

.btn-google-auth:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-1px) !important;
}

.google-icon-svg,
svg.google-icon-svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Footer on Auth Pages */
.auth-simple-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

/* ==========================================================================
   Comprehensive Responsive Media Queries (Desktop, Laptop, Tablet, Mobile)
   ========================================================================== */

/* Laptops / Compact Desktops (961px - 1160px) */
@media (max-width: 1160px) {
  .auth-card-layout.register-layout {
    max-width: 980px;
    grid-template-columns: 1fr 1.15fr;
  }
  .auth-showcase-side {
    padding: 2.5rem 1.75rem;
  }
  .auth-form-side.register-side {
    padding: 2.25rem 1.75rem;
  }
  .showcase-title {
    font-size: 1.65rem;
  }
}

/* Tablets Portrait & Medium Screens (769px - 960px) */
@media (max-width: 960px) {
  .auth-main-container {
    padding: 2rem 1.25rem;
  }

  .auth-card-layout, 
  .auth-card-layout.register-layout {
    grid-template-columns: 1fr;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 15px 35px -10px rgba(34, 122, 255, 0.1);
  }

  .auth-showcase-side {
    display: none;
  }

  .auth-form-side, 
  .auth-form-side.register-side {
    padding: 2.5rem 2rem;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Large Mobile & Phablets (481px - 768px) */
@media (max-width: 768px) {
  .auth-main-container {
    padding: 1.5rem 1rem;
  }

  .auth-card-layout, 
  .auth-card-layout.register-layout {
    max-width: 100%;
    border-radius: var(--radius-lg);
  }

  .auth-form-side, 
  .auth-form-side.register-side {
    padding: 2rem 1.5rem;
  }

  .auth-form-header h2 {
    font-size: 1.5rem;
  }

  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

/* Standard Mobile Devices (381px - 480px) */
@media (max-width: 480px) {
  .auth-top-header {
    height: 4rem;
  }

  .auth-header-container {
    padding: 0 1rem;
  }

  .auth-main-container {
    padding: 1.25rem 0.75rem;
  }

  .auth-form-side, 
  .auth-form-side.register-side {
    padding: 1.75rem 1.15rem;
  }

  .auth-form-header {
    margin-bottom: 1.25rem;
  }

  .auth-form-header h2 {
    font-size: 1.35rem;
  }

  .auth-form-header p {
    font-size: 0.8rem;
  }

  .btn-google-auth {
    font-size: 0.825rem;
    padding: 0.65rem 0.75rem;
    gap: 0.5rem;
  }

  .btn-primary, 
  .btn-accent {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .form-control {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
  }

  .role-switcher-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.25rem !important;
    padding: 0.25rem !important;
  }

  .role-tab-btn {
    font-size: 0.7rem !important;
    padding: 0.45rem 0.2rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .demo-accounts-bar {
    padding: 0.6rem 0.75rem;
  }

  .otp-input-group {
    gap: 0.4rem;
  }

  .otp-digit {
    width: 40px;
    height: 48px;
    font-size: 1.35rem;
  }
}

/* Extra-small screens (<= 360px) */
@media (max-width: 360px) {
  .auth-main-container {
    padding: 1rem 0.4rem;
  }

  .auth-form-side, 
  .auth-form-side.register-side {
    padding: 1.5rem 0.85rem;
  }

  .otp-digit {
    width: 36px;
    height: 44px;
    font-size: 1.2rem;
  }
}
