/* Authentication Page Styles */

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-container {
  max-width: 500px;
  width: 100%;
}

.auth-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 5px solid var(--page-border);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  font-size: 60px;
  margin-bottom: 15px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: #6c5ce7;
  margin-bottom: 10px;
}

.auth-subtitle {
  color: #636e72;
  font-size: 16px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 3px solid #f8e5d7;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #636e72;
  transition: all 0.3s;
  margin-bottom: -3px;
}

.tab-btn:hover {
  color: var(--button-primary);
}

.tab-btn.active {
  color: var(--button-primary);
  border-bottom-color: var(--button-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d3436;
  font-size: 15px;
}

.form-group input {
  width: 100%;
}

.form-group input:disabled {
  background: #f8f9fa;
  cursor: not-allowed;
  color: #636e72;
}

.form-hint {
  font-size: 13px;
  color: #636e72;
  margin-top: 5px;
}

.lexile-display {
  background: linear-gradient(135deg, #fff4e6 0%, #ffe0b2 100%);
  padding: 15px 20px;
  border-radius: 15px;
  text-align: center;
  margin: 20px 0;
  border: 3px solid var(--accent-color);
}

.lexile-label {
  font-size: 14px;
  color: #636e72;
  margin-bottom: 5px;
}

.lexile-score {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-color);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  margin-top: 20px;
}

.divider {
  text-align: center;
  margin: 25px 0;
  color: #636e72;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #dfe6e9;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.link-text {
  text-align: center;
  margin-top: 20px;
  color: #636e72;
  font-size: 14px;
}

.link-text a {
  color: var(--button-secondary);
  text-decoration: none;
  font-weight: 600;
}

.link-text a:hover {
  text-decoration: underline;
}

.error-text {
  color: #ff7675;
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

.error-text.show {
  display: block;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 768px) {
  .auth-card {
    padding: 25px;
  }

  .auth-logo {
    font-size: 50px;
  }

  .auth-title {
    font-size: 24px;
  }
}
