.ws-auth-page {
    position: relative;
    padding: 2.5rem 0 3.5rem;
    border-radius: 22px;
    border: 1px solid var(--ws-border);
    background-color: var(--ws-wood-cream);
    background-image:
        linear-gradient(135deg, rgba(255, 251, 247, 0.94), rgba(235, 229, 220, 0.92)),
        var(--ws-auth-wood);
    background-size: cover, 520px 380px;
    background-repeat: no-repeat, repeat;
    box-shadow: var(--ws-shadow);
    overflow: hidden;
}

.ws-auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 480px);
    gap: 2rem;
    align-items: stretch;
    padding: 1.75rem;
    max-width: 1120px;
    margin: 0 auto;
}

.ws-auth-visual {
    border-radius: 18px;
    padding: 2.2rem;
    background:
        linear-gradient(160deg, rgba(45, 31, 20, 0.92), rgba(93, 64, 43, 0.92)),
        var(--ws-auth-wood);
    background-size: cover, 460px 320px;
    background-repeat: no-repeat, repeat;
    color: var(--ws-text-on-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
    box-shadow: var(--ws-shadow-lg);
}

.ws-auth-logo {
    max-width: 130px;
}

.ws-auth-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.ws-auth-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ws-auth-brand-title {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ws-text-on-dark);
}

.ws-auth-tagline {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    color: rgba(245, 240, 232, 0.75);
}

.ws-auth-visual h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.9rem;
    margin: 0;
}

.ws-auth-visual p {
    margin: 0;
    color: rgba(245, 240, 232, 0.82);
    max-width: 420px;
}

.ws-auth-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.ws-auth-card {
    background: var(--ws-wood-card);
    border-radius: 18px;
    border: 1px solid var(--ws-border);
    box-shadow: var(--ws-shadow-lg);
    padding: 1.75rem;
}

.ws-auth-card h1 {
    font-family: "Playfair Display", serif;
    font-size: 1.7rem;
    margin-bottom: 0.4rem;
    color: var(--ws-wood-primary);
}

.ws-auth-card p {
    color: var(--ws-text-muted);
    margin-bottom: 1rem;
}

.ws-auth-buttons {
    display: grid;
    gap: 0.6rem;
}

.ws-auth-btn {
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 0.9rem;
}

.ws-auth-btn--compact {
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
    border-radius: 8px;
    min-width: auto;
}

.ws-auth-btn.ws-btn-primary {
    box-shadow: 0 6px 16px rgba(45, 31, 20, 0.18);
}

.ws-auth-links {
    margin-top: 1rem;
    display: grid;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.ws-auth-links a {
    color: var(--ws-wood-medium);
    text-decoration: none;
}

.ws-auth-links a:hover {
    color: var(--ws-wood-primary);
    text-decoration: underline;
}

.ws-auth-highlight {
    background: rgba(166, 124, 82, 0.12);
    border-radius: 12px;
    padding: 0.85rem;
    font-size: 0.9rem;
    color: var(--ws-text-primary);
}

.ws-auth-highlight strong {
    color: var(--ws-wood-primary);
}

/* Modal styling */
.ws-auth-modal .modal-dialog {
    max-width: 520px;
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform: translateY(14px) scale(0.98);
}

.ws-auth-modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

.ws-auth-modal .modal-content {
    border-radius: 18px;
    border: 1px solid var(--ws-border);
    box-shadow: var(--ws-shadow-lg);
}

.ws-auth-modal .modal-header {
    border-bottom: none;
}

.ws-auth-modal .modal-body {
    padding-top: 0;
}

.ws-auth-modal-brand {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ws-auth-modal-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.ws-auth-modal-brand-title {
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    color: var(--ws-wood-primary);
    margin: 0;
}

.ws-auth-field .form-control {
    border-radius: 10px;
    background: var(--ws-wood-surface);
}

.ws-auth-field .form-control.is-valid {
    border-color: #7a9c5f;
    box-shadow: 0 0 0 0.15rem rgba(122, 156, 95, 0.15);
}

.ws-auth-field .form-control.is-invalid {
    border-color: #c25757;
    box-shadow: 0 0 0 0.15rem rgba(194, 87, 87, 0.15);
}

.ws-auth-strength {
    margin-top: 0.5rem;
}

.ws-auth-strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}

.ws-auth-strength-bars span {
    height: 4px;
    border-radius: 999px;
    background: rgba(166, 124, 82, 0.25);
}

.ws-auth-strength-bars span.is-active {
    background: var(--ws-wood-accent);
}

.ws-auth-strength.is-weak .ws-auth-strength-bars span.is-active {
    background: #c25757;
}

.ws-auth-strength.is-medium .ws-auth-strength-bars span.is-active {
    background: #b78356;
}

.ws-auth-strength.is-strong .ws-auth-strength-bars span.is-active {
    background: #7a9c5f;
}

.ws-auth-strength-label {
    font-size: 0.78rem;
    color: var(--ws-text-muted);
}

.ws-auth-modal-cta {
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 12px;
    background: rgba(61, 44, 30, 0.06);
    border: 1px solid var(--ws-border);
}

.ws-auth-modal-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ws-text-muted);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.ws-auth-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.ws-auth-cta-actions .btn {
    flex: 0 0 auto;
}

.ws-auth-cta-actions .ws-btn-outline {
    color: var(--ws-wood-primary);
    background: transparent;
}

.ws-auth-cta-actions .ws-btn-outline:hover,
.ws-auth-cta-actions .ws-btn-outline:focus {
    color: var(--ws-text-on-dark);
}

.ws-auth-cta-actions .ws-btn-primary {
    color: var(--ws-text-on-dark);
}

.ws-auth-cta-actions .ws-btn-primary:hover,
.ws-auth-cta-actions .ws-btn-primary:focus {
    color: var(--ws-text-on-dark);
}

.ws-auth-form-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-start;
    align-items: center;
}

@media (max-width: 991.98px) {
    .ws-auth-shell {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .ws-auth-visual {
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .ws-auth-page {
        padding: 2rem 0 3rem;
    }

    .ws-auth-shell {
        padding: 1rem;
    }

    .ws-auth-card {
        padding: 1.4rem;
    }

    .ws-auth-modal .modal-dialog {
        max-width: 100%;
        margin: 0;
    }
}
