/* Authentication Pages Styles */
:root {
  --primary-color: #567bff;
  --primary-color-dark: #4a6ce0;
  --secondary-color: #6b7280;
  --text-color: #2a2b2c;
  --bg-color: #f3f4f6;
  --error-color: #ef4444;
  --success-color: #10b981;
  --border-radius: 12px;
  --neu-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05), -5px -5px 10px rgba(255, 255, 255, 0.6);
  --neu-shadow-inset: inset 3px 3px 5px rgba(0, 0, 0, 0.1), inset -3px -3px 5px rgba(255, 255, 255, 0.6);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Nunito', sans-serif;
  
  /* Professional Typography Scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

.auth-container {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.auth-card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--neu-shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-brand-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  box-shadow: var(--neu-shadow);
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 0.25rem;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--secondary-color);
  margin: 0;
}

.features-container {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
  max-width: 30%;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--neu-shadow);
}

.feature-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
}

.auth-form-group {
  margin-bottom: 1.5rem;
}

.auth-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.auth-input-wrapper {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: var(--border-radius);
  border: 2px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--neu-shadow-inset);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--text-color);
  outline: none;
  transition: all 0.3s ease;
}

.auth-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(86, 123, 255, 0.15), 0 0 20px rgba(86, 123, 255, 0.1), var(--neu-shadow-inset);
}

.auth-input:hover {
  border-color: rgba(86, 123, 255, 0.4);
}

.auth-remember {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.auth-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-checkbox {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.auth-forgot {
  font-size: var(--text-sm);
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--neu-shadow);
  margin-bottom: 1.5rem;
}

.auth-btn:hover {
  background-color: var(--primary-color-dark);
}

.auth-footer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--secondary-color);
  line-height: var(--line-height-normal);
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-year {
  font-weight: 600;
}

.success-text {
  text-align: center;
  color: var(--success-color);
  background-color: rgba(16, 185, 129, 0.1);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-size: var(--text-sm);
}

.error-text {
  color: var(--error-color);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-normal);
  margin-top: 0.375rem;
}

/* Registration Specific Styles */
.benefits-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 1.5rem 0;
  gap: 0.5rem;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem;
  flex: 1;
  min-width: 80px;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--neu-shadow);
}

.benefit-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
}

.auth-form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

.auth-form-row .auth-form-group {
  flex: 1;
}

.password-strength {
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 2px;
  margin: 0.5rem 0;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-weak {
  width: 25%;
  background-color: #ef4444;
}

.strength-fair {
  width: 50%;
  background-color: #f59e0b;
}

.strength-good {
  width: 75%;
  background-color: #10b981;
}

.strength-strong {
  width: 100%;
  background-color: #10b981;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.auth-terms-text {
  font-size: 0.875rem;
  color: var(--secondary-color);
  line-height: 1.4;
}

.auth-terms-text a {
  color: var(--primary-color);
  text-decoration: none;
}

.auth-terms-text a:hover {
  text-decoration: underline;
}

/* Responsive styles */
/* Tablet styles */
@media (max-width: 992px) {
  .auth-container {
    max-width: 760px;
    padding: 0 1.5rem;
  }
  
  .auth-card {
    padding: 2rem;
    max-width: 600px;
  }
  
  .features-container, .benefits-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .feature-card, .benefit-card {
    min-width: 120px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .auth-container {
    max-width: 100%;
    margin: 1rem auto;
    padding: 0 1rem;
  }
  
  .auth-card {
    padding: 1.5rem;
    border-radius: calc(var(--border-radius) - 2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
  
  .auth-subtitle {
    font-size: 0.8125rem;
  }
  
  .features-container, .benefits-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .feature-card, .benefit-card {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background-color: rgba(243, 244, 246, 0.5);
    border-radius: var(--border-radius);
  }
  
  .feature-icon, .benefit-icon {
    margin-bottom: 0;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .feature-text, .benefit-text {
    text-align: left;
  }
  
  .auth-form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .auth-input {
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    font-size: 1rem;
  }
  
  .auth-remember {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .auth-forgot {
    margin-left: 1.6rem;
  }
  
  .auth-btn {
    padding: 0.875rem;
    font-size: 1rem;
  }
  
  /* Make checkboxes more touch-friendly */
  .auth-checkbox {
    width: 20px;
    height: 20px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .auth-container {
    padding: 0 0.5rem;
    margin: 0.5rem auto;
  }
  
  .auth-card {
    padding: 1.25rem;
    border-radius: calc(var(--border-radius) - 4px);
  }
  
  .auth-brand-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .auth-title {
    font-size: 1.35rem;
  }
  
  .auth-form-group {
    margin-bottom: 1.25rem;
  }
  
  .auth-terms {
    gap: 0.5rem;
  }
  
  .auth-terms-text {
    font-size: 0.8125rem;
    line-height: 1.3;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .auth-btn {
    padding: 1rem;
  }
  
  .auth-input {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  
  .auth-label {
    margin-bottom: 0.75rem;
  }
  
  .auth-checkbox-wrapper, .auth-terms {
    cursor: pointer;
  }
  
  .auth-checkbox {
    margin-right: 0.5rem;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  body {
    align-items: flex-start;
  }
  
  .auth-container {
    margin: 0.5rem auto;
  }
  
  .auth-card {
    padding: 1rem;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  .auth-logo {
    margin-bottom: 0.75rem;
  }
  
  .auth-brand-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .features-container, .benefits-container {
    margin: 0.75rem 0;
  }
  
  .auth-form-group {
    margin-bottom: 0.75rem;
  }
  
  .auth-remember, .auth-terms {
    margin-bottom: 0.75rem;
  }
  
}
