/* ============================================
   LOGIN PAGE STYLES
   Purpose: Styles specific to login.ejs
   Mobile-first approach
   ============================================ */

/* ============================================
   AUTH CONTAINER
   ============================================ */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #5B8DDB 0%, #7BA5E8 100%);
}

@media (min-width: 768px) {
  .auth-container {
    padding: 40px;
  }
}

/* ============================================
   AUTH CARD
   ============================================ */

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-xl);
  padding: 32px 24px;
}

@media (min-width: 768px) {
  .auth-card {
    padding: 48px 40px;
  }
}

/* ============================================
   AUTH HEADER
   ============================================ */

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .auth-header {
    margin-bottom: 40px;
  }
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-family-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  transition: color var(--transition-fast);
}

@media (min-width: 768px) {
  .auth-logo {
    font-size: 28px;
    margin-bottom: 32px;
  }
}

.auth-logo:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

@media (min-width: 768px) {
  .auth-logo:hover {
    color: var(--primary-blue);
  }
}

.auth-logo .logo-icon {
  font-size: 28px;
}

@media (min-width: 768px) {
  .auth-logo .logo-icon {
    font-size: 32px;
  }
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .auth-title {
    font-size: 32px;
    margin-bottom: 12px;
  }
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-medium);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .auth-subtitle {
    font-size: 16px;
  }
}

/* ============================================
   AUTH FORM
   ============================================ */

.auth-form {
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .auth-form {
    margin-bottom: 32px;
  }
}

.auth-form .form-group {
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .auth-form .form-group {
    margin-bottom: 24px;
  }
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
}

@media (min-width: 768px) {
  .form-row {
    margin-bottom: 32px;
    gap: 16px;
  }
}

.forgot-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .forgot-link {
    font-size: 15px;
  }
}

.forgot-link:hover {
  color: var(--primary-blue-hover);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .forgot-link:hover {
    color: var(--primary-blue-hover);
  }
}

.btn-block {
  width: 100%;
}

@media (min-width: 768px) {
  .btn-block {
    width: 100%;
  }
}

/* ============================================
   AUTH DIVIDER
   ============================================ */

.auth-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

@media (min-width: 768px) {
  .auth-divider {
    margin: 32px 0;
  }
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--bg-light);
}

@media (min-width: 768px) {
  .auth-divider::before {
    height: 1px;
  }
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 16px;
  background-color: var(--bg-white);
  font-size: 14px;
  color: var(--text-light);
}

@media (min-width: 768px) {
  .auth-divider span {
    padding: 0 20px;
    font-size: 15px;
  }
}

/* ============================================
   AUTH FOOTER
   ============================================ */

.auth-footer {
  text-align: center;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .auth-footer {
    margin-top: 32px;
  }
}

.back-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

@media (min-width: 768px) {
  .back-link {
    font-size: 15px;
  }
}

.back-link:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

@media (min-width: 768px) {
  .back-link:hover {
    color: var(--primary-blue);
  }
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */

.auth-form input[type="email"],
.auth-form input[type="password"] {
  font-size: 16px;
}

@media (min-width: 768px) {
  .auth-form input[type="email"],
  .auth-form input[type="password"] {
    font-size: 16px;
  }
}

.auth-form .checkbox-wrapper {
  font-size: 14px;
}

@media (min-width: 768px) {
  .auth-form .checkbox-wrapper {
    font-size: 15px;
  }
}

.auth-form .checkbox-wrapper label {
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .auth-form .checkbox-wrapper label {
    font-weight: 500;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 380px) {
  .auth-card {
    padding: 28px 20px;
  }
  
  .auth-title {
    font-size: 24px;
  }
  
  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .forgot-link {
    align-self: flex-end;
  }
}
