/* Shared styles for auth pages (login, signup, forgot-password, etc.) */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 460px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  text-decoration: none;
}

.auth-logo img {
  height: 36px;
  width: auto;
}

.auth-heading {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-subheading {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Form elements */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-main);
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* Feedback */
.form-error {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 14px;
  min-height: 18px;
  line-height: 1.4;
}

.form-success {
  color: #69db7c;
  font-size: 14px;
  margin-top: 14px;
  line-height: 1.4;
}

/* Buttons */
.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 8px;
  text-align: center;
  font-family: var(--font-main);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn:disabled,
.btn-loading {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

/* Footer links */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

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

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* Tabs */
.tab-group {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
}

.tab-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* OTP code field */
.otp-field {
  display: none;
  margin-top: 16px;
}

.otp-field.visible {
  display: block;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

.btn-primary .spinner {
  border-color: rgba(0, 0, 0, 0.25);
  border-top-color: #000;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
}
