/* ==========================================================================
   AI School OS - Premium Authentication Stylesheet
   Glassmorphism, Split Screen, Floating Cards & Micro-Animations
   ========================================================================== */

/* Auth Layout Structure */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  background-color: #f8fafc;
}

.auth-left-panel {
  flex: 1;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0d9488 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: #ffffff;
}

.auth-left-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.auth-circle-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(40px);
}

.auth-circle-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.2);
  filter: blur(50px);
}

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

.auth-right-panel {
  width: 100%;
  max-width: 580px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 5;
}

/* Glass Floating Cards */
.glass-floating-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-floating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.floating-anim-1 {
  animation: floatSlow 6s ease-in-out infinite;
}

.floating-anim-2 {
  animation: floatSlow 7s ease-in-out infinite 1s;
}

.floating-anim-3 {
  animation: floatSlow 8s ease-in-out infinite 2s;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Role Selector Grid */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.role-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  background-color: #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.role-card:hover {
  border-color: #2563eb;
  background-color: #f0f7ff;
  transform: translateY(-2px);
}

.role-card.active {
  border-color: #2563eb;
  background-color: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.role-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #f1f5f9;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.role-card.active .role-icon {
  background-color: #2563eb;
  color: #ffffff;
}

.role-info h6 {
  margin: 0;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1e293b;
}

.role-info small {
  font-size: 0.75rem;
  color: #64748b;
  display: block;
}

/* Form Customizations */
.form-input-group {
  position: relative;
}

.form-input-group .form-control {
  padding-right: 2.75rem;
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input-group .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10;
}

.password-toggle-btn:hover {
  color: #2563eb;
}

/* Social Login Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.auth-divider span {
  padding: 0 0.75rem;
}

.btn-social-google {
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-weight: 600;
  font-size: 0.875rem;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-social-google:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
}

/* Password Strength Meter */
.strength-meter {
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.strength-meter-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak { width: 33%; background-color: #ef4444; }
.strength-medium { width: 66%; background-color: #f59e0b; }
.strength-strong { width: 100%; background-color: #10b981; }

/* Feedback & Alerts */
.auth-alert {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Loading States */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .auth-wrapper {
    flex-direction: column;
  }

  .auth-left-panel {
    display: none; /* Focus on auth form for mobile */
  }

  .auth-right-panel {
    max-width: 100%;
    min-height: 100vh;
    padding: 2rem 1.5rem;
  }
}
