/* ── Auth Page Styles ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
  position: relative;
}

.auth-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(90,59,110,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(40,148,160,0.2) 0%, transparent 50%);
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.auth-logo img { height: 56px; margin: 0 auto var(--space-sm); }
.auth-logo h1 {
  font-size: var(--fs-xl);
  font-weight: 800;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-tabs {
  display: flex;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: var(--space-xl);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-full);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}
.auth-tab.active {
  background: var(--gradient-btn);
  color: white;
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.auth-form .input-group { gap: 6px; }

.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.role-option {
  padding: var(--space-md);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  background: var(--bg-glass);
}
.role-option.selected {
  border-color: var(--accent-primary);
  background: rgba(125,207,207,0.08);
  box-shadow: 0 0 0 3px rgba(125,207,207,0.1);
}
.role-option .role-icon { font-size: 2rem; margin-bottom: var(--space-xs); }
.role-option h4 { font-size: var(--fs-sm); margin-bottom: 2px; }
.role-option p  { font-size: var(--fs-xs); color: var(--text-muted); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-glass);
}

.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.social-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  background: var(--bg-glass);
  transition: all var(--transition-fast);
}
.social-auth-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.auth-footer a { color: var(--accent-primary); font-weight: 500; }

.form-error {
  background: rgba(231,76,60,0.1);
  border: 1px solid rgba(231,76,60,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: var(--fs-sm);
  color: #e74c3c;
  display: none;
}
.form-error.visible { display: block; }

.password-field { position: relative; }
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  cursor: pointer;
  padding: 4px;
}

/* T&C Modal Styles */
.tnc-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.tnc-modal.visible {
  display: flex;
  opacity: 1;
}
.tnc-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.tnc-modal-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
}
.tnc-modal-header h2 {
  font-size: var(--fs-lg);
  margin: 0;
}
.tnc-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.tnc-modal-close:hover {
  color: var(--text-primary);
}
.tnc-modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: white;
}
.tnc-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}
