/* GC Psychiatrist Search — auth forms (login / register / forgot / reset).
   Nested under .gc-ps so the --gc-* custom properties declared in
   gc-search.css cascade here without redeclaring them. */

.gc-ps-auth {
  display: flex;
  justify-content: center;    
}

.gc-ps-auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--gc-border);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15, 45, 74, 0.08);
  padding: 32px;
}

.gc-ps-auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gc-navy);
  margin: 0 0 8px;
}

.gc-ps-auth-subtitle {
  font-size: 14px;
  color: var(--gc-text2);
  margin: 0 0 24px;
}

.gc-ps-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gc-ps-auth-field-row {
  display: flex;
  gap: 12px;
}
.gc-ps-auth-field-row .gc-ps-auth-field {
  flex: 1;
  min-width: 0;
}

.gc-ps-auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--gc-navy);
  margin-bottom: 6px;
}

.gc-ps-auth-field input[type="text"],
.gc-ps-auth-field input[type="email"],
.gc-ps-auth-field input[type="password"],
.gc-ps-auth-field input[type="tel"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--gc-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--gc-navy);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gc-ps-auth-field input:focus {
  border-color: var(--gc-teal);
  box-shadow: 0 0 0 3px rgba(26, 122, 110, 0.15);
}

.gc-ps-auth-hint {
  font-size: 12px;
  color: var(--gc-text3);
  margin: 6px 0 0;
}

.gc-ps-auth-pw-strength {
  height: 4px;
  border-radius: 2px;
  background: var(--gc-border);
  margin-top: 8px;
  overflow: hidden;
}
.gc-ps-auth-pw-strength-bar {
  height: 100%;
  width: 0;
  background: var(--gc-coral);
  transition: width 0.2s ease, background 0.2s ease;
}
.gc-ps-auth-pw-strength-bar.gc-ps-strength-2,
.gc-ps-auth-pw-strength-bar.gc-ps-strength-3 { background: #E8A020; }
.gc-ps-auth-pw-strength-bar.gc-ps-strength-4 { background: var(--gc-teal); }

.gc-ps-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.gc-ps-auth-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gc-text2);
  cursor: pointer;
}

.gc-ps-auth-link {
  color: var(--gc-teal);
  text-decoration: none;
}
.gc-ps-auth-link:hover {
  text-decoration: underline;
}

button.gc-ps-auth-submit,
a.gc-ps-auth-submit-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  text-align: center;
  background: var(--gc-teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}
button.gc-ps-auth-submit:hover,
a.gc-ps-auth-submit-link:hover {
  background: #145F55; /* darker teal, ~15% shade down from --gc-teal */
}
button.gc-ps-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gc-ps-auth-message {
  font-size: 13px;
  min-height: 0;
  display: none;
  border-radius: 6px;
  padding: 0;
}
.gc-ps-auth-message.is-visible {
  display: block;
  padding: 10px 12px;
}
.gc-ps-auth-message.is-error {
  background: #FDF3F1;
  color: var(--gc-coral);
  border: 1px solid var(--gc-coral);
}
.gc-ps-auth-message.is-success {
  background: var(--gc-mint);
  color: var(--gc-teal);
  border: 1px solid var(--gc-teal);
}

.gc-ps-auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--gc-text2);
  margin: 20px 0 0;
}
.gc-ps-auth-switch a {
  color: var(--gc-teal);
  text-decoration: none;
  font-weight: 500;
}
.gc-ps-auth-switch a:hover {
  text-decoration: underline;
}

.gc-ps-auth-loggedin {
  text-align: center;
}
.gc-ps-auth-loggedin .gc-ps-auth-submit-link {
  margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .gc-ps-auth {
    padding: 40px 16px;
  }
  .gc-ps-auth-card {
    padding: 24px;
  }
  .gc-ps-auth-field-row {
    flex-direction: column;
    gap: 16px;
  }
}
