/* ==========================================================================
   TutorBridge - Authentication Styles (signup.html & login.html)
   Clean, education marketplace aesthetic (Not generic SaaS)
   ========================================================================== */

.auth-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page, #F8FAFC);
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.auth-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: var(--radius-xl, 18px);
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  width: 100%;
  max-width: 520px;
}

.auth-card.auth-card-wide {
  max-width: 620px;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary, #475569);
  line-height: 1.45;
}

/* Role Selector Cards */
.role-select-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  margin-bottom: 0.65rem;
  display: block;
}

.role-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.role-select-card {
  border: 2px solid var(--border-light, #E2E8F0);
  border-radius: var(--radius-md, 10px);
  padding: 1rem 0.65rem;
  text-align: center;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  user-select: none;
}

.role-select-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-select-card:hover {
  border-color: #218DAE;
  background: #F0F9FB;
}

.role-select-card.selected {
  border-color: #218DAE;
  background: #E8F5F8;
  box-shadow: 0 0 0 3px rgba(33, 141, 174, 0.15);
}

.role-badge-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: #E2E8F0;
  color: #475569;
  margin-bottom: 0.4rem;
}

.role-select-card.selected .role-badge-tag {
  background: #218DAE;
  color: #FFFFFF;
}

.role-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  margin-bottom: 0.25rem;
}

.role-card-desc {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748B);
  line-height: 1.35;
}

/* Password eye toggle wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .form-input {
  padding-right: 2.75rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted, #94A3B8);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.password-toggle-btn:hover {
  color: var(--text-main, #0F172A);
}

/* Yellow Primary Button */
.btn-yellow-cta {
  background-color: #FFD758 !important;
  color: #1A2E35 !important;
  font-weight: 700 !important;
  border: 1px solid #E6C147 !important;
  box-shadow: 0 2px 4px rgba(255, 215, 88, 0.3);
}

.btn-yellow-cta:hover {
  background-color: #F8CB3A !important;
  color: #111E23 !important;
}

@media (max-width: 600px) {
  .role-select-grid {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 1.75rem 1.25rem;
  }
}
