/* ==============================================
   Auth & Status Pages – Shared Styles
   Centered card layout for login, signup,
   forgot-password, reset-password, link-account,
   business-status, error pages, etc.
   ============================================== */

/* Centre the <main> element and add gradient bg */
.auth-page {
    background: linear-gradient(135deg, var(--wf-primary) 0%, var(--wf-accent) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Card container */
.auth-card {
    background: var(--wf-surface);
    border-radius: var(--wf-radius-xl);
    box-shadow: var(--wf-shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
}

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

/* Heading */
.auth-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-heading h2 {
    font-weight: 700;
    color: var(--wf-text);
    margin-bottom: 0.25rem;
}

.auth-heading p {
    color: var(--wf-text-muted);
    font-size: var(--wf-font-size-sm);
}

/* Large status icon */
.status-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.status-icon.text-danger { color: var(--bs-danger); }
.status-icon.text-warning { color: var(--bs-warning); }
.status-icon.text-info    { color: var(--bs-info); }
.status-icon.text-primary { color: var(--wf-primary); }

/* Info box – left-bordered highlight */
.auth-info-box {
    background: var(--wf-bg);
    border-radius: var(--wf-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--wf-primary);
    text-align: left;
}

.auth-info-box h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Steps list */
.auth-steps .step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.auth-steps .step-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    color: var(--wf-primary);
    width: 1.5rem;
    text-align: center;
}

.auth-steps .step-content {
    flex: 1;
    font-size: var(--wf-font-size-sm);
    color: var(--wf-text-muted);
}

.auth-steps .step-content strong {
    color: var(--wf-text);
    display: block;
    margin-bottom: 0.15rem;
}

/* Feature list (subdomain page) */
.auth-features .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--wf-text-muted);
    font-size: var(--wf-font-size-sm);
}

.auth-features .feature-icon {
    color: var(--wf-accent);
    font-weight: 700;
}

/* Password show/hide toggle */
.password-field {
    position: relative;
}

.password-field > .form-control {
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--wf-text-muted);
    cursor: pointer;
    z-index: 5;
    padding: 0.25rem;
    line-height: 1;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--wf-primary);
    outline: none;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card { padding: 1.75rem 1.25rem; }
    .auth-heading h2 { font-size: 1.35rem; }
    .status-icon { font-size: 2.5rem; }
}

[data-theme="dark"] .auth-page {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
}

[data-theme="dark"] .auth-card {
    border: 1px solid var(--wf-border);
}

[data-theme="dark"] .auth-card .form-control,
[data-theme="dark"] .auth-card .form-select {
    background: var(--wf-bg);
    border-color: var(--wf-border);
    color: var(--wf-text);
}

[data-theme="dark"] .auth-card .form-control:focus {
    background: var(--wf-bg);
    border-color: var(--wf-primary);
    color: var(--wf-text);
}

[data-theme="dark"] .auth-info-box {
    background: var(--wf-bg-alt);
    border-left-color: var(--wf-primary);
    color: var(--wf-text-secondary);
}

[data-theme="dark"] .auth-info-box h6 {
    color: var(--wf-text);
}

[data-theme="dark"] .auth-steps .step-content {
    color: var(--wf-text-muted);
}

[data-theme="dark"] .auth-steps .step-content strong {
    color: var(--wf-text);
}

[data-theme="dark"] .auth-features .feature {
    color: var(--wf-text-muted);
}

[data-theme="dark"] .auth-card .form-label,
[data-theme="dark"] .auth-card label {
    color: var(--wf-text-secondary);
}

[data-theme="dark"] .auth-card .text-muted,
[data-theme="dark"] .auth-card .form-text {
    color: var(--wf-text-muted) !important;
}

[data-theme="dark"] .auth-card a:not(.btn) {
    color: var(--wf-primary);
}

