/* ============================================
   REGISTER PAGE STYLES
   Purpose: Styles specific to register.ejs
   Inherits from login.css (auth container, card, etc.)
   Mobile-first approach
   ============================================ */

/* ============================================
   PASSWORD HINT
   ============================================ */

.password-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

@media (min-width: 768px) {
  .password-hint {
    margin-top: 8px;
    font-size: 14px;
  }
}

.password-hint.strong {
  color: var(--success-green);
  font-weight: 600;
}

@media (min-width: 768px) {
  .password-hint.strong {
    color: var(--success-green);
  }
}

.password-hint.weak {
  color: var(--error-red);
  font-weight: 600;
}

@media (min-width: 768px) {
  .password-hint.weak {
    color: var(--error-red);
  }
}

/* ============================================
   TERMS CHECKBOX
   ============================================ */

.auth-form .checkbox-wrapper label a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

@media (min-width: 768px) {
  .auth-form .checkbox-wrapper label a {
    color: var(--primary-blue);
  }
}

.auth-form .checkbox-wrapper label a:hover {
  color: var(--primary-blue-hover);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .auth-form .checkbox-wrapper label a:hover {
    color: var(--primary-blue-hover);
  }
}

/* ============================================
   FORM SPACING ADJUSTMENTS
   ============================================ */

.auth-form .form-group:last-of-type {
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .auth-form .form-group:last-of-type {
    margin-bottom: 32px;
  }
}

/* ============================================
   REGISTER-SPECIFIC CARD ADJUSTMENTS
   ============================================ */

.auth-container .auth-card {
  max-width: 460px;
}

@media (min-width: 768px) {
  .auth-container .auth-card {
    max-width: 480px;
  }
}

/* ============================================
   CHECKBOX ERROR STATE
   ============================================ */

.checkbox-wrapper.input-error label {
  color: var(--error-red);
}

@media (min-width: 768px) {
  .checkbox-wrapper.input-error label {
    color: var(--error-red);
  }
}

.checkbox-wrapper .error-message {
  margin-top: 6px;
  margin-left: 0;
}

@media (min-width: 768px) {
  .checkbox-wrapper .error-message {
    margin-top: 8px;
  }
}

/* ============================================
   PASSWORD FIELD ENHANCEMENTS
   ============================================ */

#password,
#confirmPassword {
  font-family: monospace;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  #password,
  #confirmPassword {
    letter-spacing: 0.5px;
  }
}

/* ============================================
   SUCCESS MESSAGE (After Registration)
   ============================================ */

.success-message {
  background-color: rgba(81, 207, 102, 0.1);
  border: 2px solid var(--success-green);
  border-radius: var(--radius-medium);
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .success-message {
    padding: 24px;
    margin-bottom: 32px;
  }
}

.success-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: scaleIn 0.3s ease;
}

@media (min-width: 768px) {
  .success-icon {
    font-size: 64px;
    margin-bottom: 16px;
  }
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--success-green);
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .success-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
}

.success-text {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 0;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .success-text {
    font-size: 16px;
  }
}

/* ============================================
   HIDDEN STATE (for form/success toggle)
   ============================================ */

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .hidden {
    display: none;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  @keyframes scaleIn {
    from {
      transform: scale(0);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS FOR SMALLER SCREENS
   ============================================ */

@media (max-width: 380px) {
  .auth-card {
    padding: 24px 18px;
  }
  
  .auth-title {
    font-size: 22px;
  }
  
  .auth-subtitle {
    font-size: 14px;
  }
  
  .password-hint {
    font-size: 12px;
  }
  
  .success-message {
    padding: 16px;
  }
  
  .success-icon {
    font-size: 40px;
  }
  
  .success-title {
    font-size: 18px;
  }
  
  .success-text {
    font-size: 13px;
  }
}