/* Guest auth — StayVista split login (matches public + owner panel quality) */
.sv-auth-page {
    min-height: 100vh;
    background: var(--sv-cream, #faf8f5);
    font-family: 'DM Sans', system-ui, sans-serif;
}

.sv-auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
}

.sv-auth-brand {
    background: var(--sv-dark, #141414);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.sv-auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1582268611958-ebfd161ef9cf?w=1200&h=1400&fit=crop') center / cover no-repeat;
    opacity: 0.28;
}

.sv-auth-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(20, 20, 20, 0.93) 0%, rgba(20, 20, 20, 0.82) 100%);
}

.sv-auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.sv-auth-brand-logo {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.sv-auth-brand-logo:hover {
    color: var(--sv-gold, #c9a96e);
}

.sv-auth-brand-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sv-gold, #c9a96e);
    margin: 0 0 0.75rem;
}

.sv-auth-brand-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 1rem;
}

.sv-auth-brand-lead {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 2rem;
}

.sv-auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sv-auth-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.85rem;
}

.sv-auth-features li i {
    width: 2rem;
    height: 2rem;
    border-radius: 2px;
    background: rgba(201, 169, 110, 0.15);
    color: var(--sv-gold, #c9a96e);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sv-auth-main {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    background: var(--sv-cream, #faf8f5);
}

.sv-auth-main-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.sv-auth-back-site {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--sv-muted, #6b6560);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sv-auth-back-site:hover {
    color: var(--sv-dark, #141414);
}

.sv-auth-alert {
    max-width: 440px;
    width: 100%;
    margin: 0 auto 1rem;
    padding: 0.85rem 1rem;
    border-radius: 2px;
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.sv-auth-alert-error {
    background: #fde8e8;
    border: 1px solid #f5c2c7;
    color: #9b2226;
}

.sv-auth-alert-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2d6a4f;
}

.sv-auth-main-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 2rem;
}

.sv-auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--sv-border, #e8e4df);
    border-radius: 2px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 8px 32px rgba(20, 20, 20, 0.05);
}

.sv-auth-card-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.sv-auth-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--sv-cream, #faf8f5);
    border: 1px solid var(--sv-border, #e8e4df);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--sv-dark, #141414);
    margin-bottom: 1rem;
}

.sv-auth-card-head h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--sv-dark, #141414);
}

.sv-auth-card-head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--sv-muted, #6b6560);
}

.sv-auth-field {
    margin-bottom: 1.15rem;
}

.sv-auth-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sv-muted, #6b6560);
    margin-bottom: 0.35rem;
}

.sv-auth-input-wrap {
    position: relative;
}

.sv-auth-input-wrap > i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sv-muted, #6b6560);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.sv-auth-input-wrap .form-control {
    padding-left: 2.5rem;
    border-color: var(--sv-border, #e8e4df);
    border-radius: 2px;
    min-height: 2.75rem;
    font-size: 0.9rem;
}

.sv-auth-input-wrap .form-control:focus {
    border-color: var(--sv-dark, #141414);
    box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.06);
}

.sv-auth-link {
    font-size: 0.78rem;
    color: var(--sv-muted, #6b6560);
    text-decoration: none;
}

.sv-auth-link:hover {
    color: var(--sv-dark, #141414);
    text-decoration: underline;
}

.sv-auth-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.78rem;
    color: var(--sv-muted, #6b6560);
    text-decoration: none;
    cursor: pointer;
}

.sv-auth-link-btn:hover {
    color: var(--sv-dark, #141414);
    text-decoration: underline;
}

.sv-auth-submit {
    min-height: 2.75rem;
    margin-top: 0.5rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.5rem;
    background: var(--sv-dark, #141414);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s;
}

.sv-auth-submit:hover {
    background: #2a2a2a;
    color: #fff;
}

.sv-auth-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--sv-dark, #141414);
    color: var(--sv-dark, #141414);
    background: transparent;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.15s;
}

.sv-auth-outline:hover {
    background: var(--sv-dark, #141414);
    color: #fff;
}

.sv-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1.25rem;
    color: var(--sv-muted, #6b6560);
    font-size: 0.78rem;
}

.sv-auth-divider::before,
.sv-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sv-border, #e8e4df);
}

.sv-auth-foot {
    text-align: center;
    font-size: 0.82rem;
    color: var(--sv-muted, #6b6560);
    margin: 1.25rem 0 0;
}

.sv-auth-foot a {
    color: var(--sv-dark, #141414);
    font-weight: 600;
    text-decoration: none;
}

.sv-auth-foot a:hover {
    text-decoration: underline;
}

.sv-auth-owner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sv-border, #e8e4df);
    font-size: 0.82rem;
    color: var(--sv-muted, #6b6560);
}

.sv-auth-owner-link a {
    color: var(--sv-gold-dark, #a8864d);
    font-weight: 600;
    text-decoration: none;
}

.sv-auth-owner-link a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .sv-auth-split {
        grid-template-columns: 1fr;
    }

    .sv-auth-brand {
        padding: 2rem 1.5rem;
    }

    .sv-auth-brand-title {
        font-size: 1.5rem;
    }

    .sv-auth-brand-lead {
        margin-bottom: 1.25rem;
    }

    .sv-auth-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1rem;
    }

    .sv-auth-features li {
        margin-bottom: 0;
        font-size: 0.8rem;
    }
}

@media (max-width: 575px) {
    .sv-auth-main {
        padding: 1rem;
    }

    .sv-auth-card {
        padding: 1.5rem 1.25rem;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .sv-auth-features {
        grid-template-columns: 1fr;
    }
}

/* Login modal (navbar popup) */
#loginModal {
    --sv-dark: #141414;
    --sv-gold: #c9a96e;
    --sv-gold-dark: #a8864d;
    --sv-cream: #faf8f5;
    --sv-muted: #6b6560;
    --sv-border: #e8e4df;
    font-family: 'DM Sans', system-ui, sans-serif;
}

#loginModal .modal-backdrop.show {
    opacity: 0.6;
}

.sv-login-modal-dialog {
    max-width: 440px;
    margin: 1rem auto;
}

.sv-login-modal-content {
    background: #fff;
    border: 1px solid var(--sv-border, #e8e4df);
    border-radius: 6px;
    box-shadow: 0 24px 64px rgba(20, 20, 20, 0.22);
    overflow: hidden;
}

.sv-login-modal-inner {
    position: relative;
    padding: 2rem 2rem 1.75rem;
    max-height: min(90vh, 720px);
    overflow-y: auto;
}

#loginModal .sv-auth-outline-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.sv-login-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    opacity: 0.45;
    padding: 0.5rem;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.sv-login-modal-close:hover {
    opacity: 0.85;
}

#loginModal #authModalAlert,
#loginModal #authModalSuccess {
    margin: 0 0 1rem;
    max-width: none;
    font-size: 0.85rem;
}

#loginModal .sv-auth-form {
    margin: 0;
}

#loginModal .sv-auth-card-head {
    margin-bottom: 1.5rem;
    padding-right: 1.5rem;
}

#loginModal .sv-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

#loginModal .sv-auth-label-row .sv-auth-label {
    margin-bottom: 0;
}

#loginModal .sv-auth-input-wrap {
    position: relative;
    display: block;
}

#loginModal .sv-auth-input-wrap > i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sv-muted);
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

#loginModal .sv-auth-input-wrap .form-control {
    width: 100%;
    padding: 0.7rem 0.9rem 0.7rem 2.55rem;
    min-height: 2.85rem;
    border: 1px solid var(--sv-border);
    border-radius: 4px;
    background: #fff;
    font-size: 0.92rem;
    color: var(--sv-dark);
    box-shadow: none;
}

#loginModal .sv-auth-input-wrap .form-control:focus {
    border-color: var(--sv-dark);
    box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.07);
}

#loginModal .sv-auth-otp-input {
    min-height: 2.85rem;
    border: 1px solid var(--sv-border);
    border-radius: 4px;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--sv-dark);
}

#loginModal .sv-auth-otp-input:focus {
    border-color: var(--sv-dark);
    box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.07);
}

#loginModal .sv-auth-reset-hint {
    font-size: 0.86rem;
    line-height: 1.5;
}

#loginModal .sv-auth-reset-hint strong {
    color: var(--sv-dark);
    font-weight: 600;
}

#loginModal .sv-auth-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--sv-gold-dark);
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    line-height: 1.4;
}

#loginModal .sv-auth-link-btn:hover {
    color: var(--sv-dark);
    text-decoration: underline;
}

#loginModal .sv-auth-submit {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    box-shadow: none;
}

#loginModal .sv-auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#loginModal .sv-auth-outline {
    text-decoration: none;
}

#loginModal .sv-auth-owner-link {
    flex-wrap: wrap;
    text-align: center;
    line-height: 1.5;
}

#loginModal .sv-auth-foot-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#loginModal .sv-auth-foot .sv-auth-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
}

@media (max-width: 575px) {
    .sv-login-modal-inner {
        padding: 1.5rem 1.25rem 1.35rem;
    }

    #loginModal .sv-auth-card-head {
        padding-right: 1rem;
    }

    #loginModal .sv-auth-card-head h2 {
        font-size: 1.65rem;
    }
}

#loginModal .sv-auth-link-btn--emphasis {
    font-weight: 600;
    color: var(--sv-gold-dark);
}

#loginModal .sv-auth-card-icon--owner {
    background: rgba(201, 169, 110, 0.12);
    border-color: rgba(201, 169, 110, 0.35);
    color: var(--sv-gold-dark);
}

#loginModal .sv-auth-submit--gold {
    background: var(--sv-gold-dark);
}

#loginModal .sv-auth-submit--gold:hover {
    background: #96753f;
    color: #fff;
}

#loginModal .sv-auth-footnote {
    text-align: center;
    font-size: 0.78rem;
    color: var(--sv-muted);
    margin: 1rem 0 0;
    line-height: 1.45;
}
