/* ========================================
   AUTHENTICATION STYLES
   ======================================== */

/* ========================================
   AUTH CONTAINER
   ======================================== */

.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-top: 0;
}

.auth-container {
  width: 100%;
  max-width: 450px;
}

/* ========================================
   AUTH CARD
   ======================================== */

.auth-card {
  background: white;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card h1 {
  text-align: center;
  color: #111827;
  margin-bottom: 10px;
  font-size: 32px;
}

.auth-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 40px;
  font-size: 14px;
}

/* ========================================
   AUTH FORM
   ======================================== */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.auth-form input {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  transition: 0.3s;
}

.auth-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form input.error {
  border-color: #ef4444;
}

.auth-form button {
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.auth-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.auth-form button:active {
  transform: translateY(0);
}

/* ========================================
   REMEMBER ME & FORGOT PASSWORD
   ======================================== */

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.forgot-password a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* ========================================
   AUTH DIVIDER
   ======================================== */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
  color: #d1d5db;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-divider span {
  font-size: 12px;
}

/* ========================================
   SOCIAL AUTH
   ======================================== */

.social-auth {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.social-btn {
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
}

.social-btn.google:hover {
  border-color: #ea4335;
  color: #ea4335;
}

.social-btn.facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
}

/* ========================================
   AUTH SWITCH
   ======================================== */

.auth-switch {
  text-align: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 14px;
}

.auth-switch a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ========================================
   PASSWORD STRENGTH INDICATOR
   ======================================== */

.password-strength {
  margin-top: 8px;
  font-size: 12px;
}

.strength-bar {
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 6px;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: #ef4444;
  transition: 0.3s;
}

.strength-bar-fill.weak {
  width: 25%;
  background: #ef4444;
}

.strength-bar-fill.fair {
  width: 50%;
  background: #f59e0b;
}

.strength-bar-fill.good {
  width: 75%;
  background: #10b981;
}

.strength-bar-fill.strong {
  width: 100%;
  background: #2563eb;
}

.strength-text {
  color: #6b7280;
}

.strength-text.weak { color: #ef4444; }
.strength-text.fair { color: #f59e0b; }
.strength-text.good { color: #10b981; }
.strength-text.strong { color: #2563eb; }

/* ========================================
   LOADING STATE
   ======================================== */

.auth-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 2px solid white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   TERMS & CONDITIONS
   ======================================== */

.terms-agreement {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 15px;
  line-height: 1.6;
}

.terms-agreement a {
  color: #2563eb;
  text-decoration: none;
}

.terms-agreement a:hover {
  text-decoration: underline;
}

/* ========================================
   RESPONSIVE AUTH
   ======================================== */

@media (max-width: 480px) {
  .auth-card {
    padding: 30px 20px;
    border-radius: 20px;
  }
  
  .auth-card h1 {
    font-size: 26px;
  }
  
  .auth-subtitle {
    font-size: 13px;
    margin-bottom: 30px;
  }
  
  .auth-form {
    gap: 16px;
  }
  
  .social-auth {
    grid-template-columns: 1fr;
  }
  
  .social-btn {
    justify-content: center;
  }
}
