/* ============================================
   Ambika4u - Auth Pages (Login/Register)
   ============================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  width: 100%;
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

/* Left Panel */
.auth-left {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.auth-brand {
  position: relative;
  z-index: 1;
}

.auth-brand .logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-brand .logo span { color: #ffd700; }

.auth-brand .tagline {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 40px;
}

.auth-features {
  position: relative;
  z-index: 1;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.auth-feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.auth-feature-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.auth-feature-text p {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Right Panel */
.auth-right {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header {
  margin-bottom: 32px;
}

.auth-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Google Button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-google:hover {
  border-color: #4285f4;
  background: rgba(66, 133, 244, 0.05);
  color: var(--text);
}

.btn-google img {
  width: 20px;
  height: 20px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Password Toggle */
.input-group {
  position: relative;
}

.input-group .form-control {
  padding-right: 48px;
}

.input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.input-toggle:hover { color: var(--primary); }

/* Password Strength */
.password-strength {
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}

.strength-text {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-light);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 700px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .auth-left { display: none; }
  .auth-right { padding: 40px 30px; }
}

@media (max-width: 480px) {
  .auth-right { padding: 30px 20px; }
}

/* ============================================
   MOBILE FIXES — Auth Pages
   ============================================ */

@media (max-width: 600px) {
  .auth-page {
    padding: 12px;
    align-items: flex-start;
    padding-top: 20px;
  }

  .auth-container {
    grid-template-columns: 1fr;
    border-radius: 16px;
    max-width: 100%;
  }

  .auth-left { display: none; }

  .auth-right {
    padding: 28px 20px;
  }

  .auth-header h2 { font-size: 1.5rem; }

  .btn-google { font-size: 0.85rem; padding: 10px; }
}

@media (max-width: 380px) {
  .auth-right { padding: 20px 16px; }
  .auth-header h2 { font-size: 1.3rem; }
}
