/* ============================================================================
   auth.css — Flowpeat Authentication & Portal Access Styles
   Executive hybrid glassmorphism, micro-borders, clean inputs.
   ============================================================================ */

.login-container,
.signup-container {
  max-width: 480px;
  margin: 0 auto;
}

.oauth-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.form-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #cbd5e1;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"] {
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--apex-border-subtle);
  border-radius: var(--apex-radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.18s ease;
  width: 100%;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: var(--apex-cyan);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

.password-requirements {
  font-size: 0.78rem;
  color: var(--apex-text-dim);
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

.req-item.valid {
  color: #10b981;
}

.req-item.invalid {
  color: #ef4444;
}

.oauth-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--apex-radius-sm);
  transition: all 0.18s ease;
  border: 1px solid var(--apex-border-subtle);
}

.oauth-badge .oauth-mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.oauth-google {
  background: #ffffff;
  color: #1f2937;
}
.oauth-google:hover {
  background: #f1f5f9;
}

.oauth-microsoft {
  background: #1e293b;
  color: #ffffff;
}
.oauth-microsoft:hover {
  background: #334155;
}

.oauth-facebook {
  background: #1877f2;
  color: #ffffff;
  border: 1px solid #1877f2;
}
.oauth-facebook:hover {
  background: #166fe5;
}

.oauth-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--apex-text-dim);
  text-align: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--apex-cyan);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--apex-radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  text-decoration: none;
}

.btn-primary:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.btn-full-mt12 {
  width: 100%;
  margin-top: 12px;
}

.btn-mt12 {
  margin-top: 12px;
}

.link-accent {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}
.link-accent:hover {
  text-decoration: underline;
}

.form-footer-text {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--apex-text-muted);
}

.form-footer-text-sm {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
}

.forgot-password-panel {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--apex-border-subtle);
  border-radius: var(--apex-radius-sm);
}

.card-mt32 {
  margin-top: 2rem;
}

.signup-error-box {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.5rem 0.75rem;
  border-radius: var(--apex-radius-sm);
  font-size: 0.8rem;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--apex-text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--apex-border-subtle);
}

.divider:not(:empty)::before {
  margin-right: 0.75em;
}

.divider:not(:empty)::after {
  margin-left: 0.75em;
}
