/* Prevent white body strip on auth pages */
html:has(.auth-shell),
html:has(.auth-shell) body {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: #e0f2fe;
}

/* Standalone login / auth pages — no app sidebar (full viewport, no zoom) */
.auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background: #e0f2fe;
    overflow: hidden;
    color: #0f172a;
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    width: 100%;
    flex: 1 1 auto;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-page__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 100%;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.55) 42%, rgba(14, 165, 233, 0.28) 100%),
        url('/Images/auth/palm-beach.jpg') center/cover no-repeat;
}

.auth-page__brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.28) 100%);
    pointer-events: none;
}

.auth-page__brand::after {
    content: none;
}

.auth-page__brand-inner {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
    margin-top: auto;
    margin-bottom: auto;
}

.auth-page__eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.85rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-page__logo {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    margin: 0 0 1.5rem;
    max-width: min(260px, 100%);
    overflow: hidden;
    align-self: flex-start;
}

.auth-page__logo-wrap {
    width: auto;
    height: 46px;
    min-width: 0;
    max-width: 210px;
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(2, 8, 23, 0.28);
}

.auth-page__logo img {
    width: auto;
    height: 34px;
    max-width: 180px;
    max-height: 34px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.auth-page__logo--logo-only {
    width: auto;
    max-width: min(260px, 100%);
    justify-content: flex-start;
}

.auth-page__logo--logo-only .auth-page__logo-wrap {
    width: auto;
    height: 44px;
    min-width: 0;
    max-width: 220px;
    flex: 0 1 auto;
    box-sizing: border-box;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(2, 8, 23, 0.28);
}

.auth-page__logo--logo-only img {
    width: auto;
    height: 36px;
    max-width: 200px;
    max-height: 36px;
    object-fit: contain;
    object-position: left center;
}
    border-radius: 4px;
}

.auth-page__logo strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-page__logo small {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}

.auth-page__headline {
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.9rem;
    letter-spacing: -0.025em;
    color: #fff;
}

.auth-page__headline span {
    color: #fb923c;
}

.auth-page__tagline {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 1.75rem;
    max-width: 40ch;
}

.auth-page__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-page__features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    padding: 0;
    border: none;
    background: transparent;
}

.auth-page__feature-icon {
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fb923c;
}

.auth-page__feature-icon i {
    font-size: 0.95rem;
    color: #fb923c;
}

.auth-page__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: #f8fafc;
}

.auth-card {
    width: min(400px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: clamp(1.75rem, 3.5vw, 2.35rem);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 48px rgba(15, 23, 42, 0.07);
    border: 1px solid #e2e8f0;
}

.auth-card__title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
    text-align: left;
    letter-spacing: -0.02em;
}

.auth-card__subtitle {
    text-align: left;
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 1.6rem;
    line-height: 1.45;
}

.auth-field {
    margin-bottom: 1.05rem;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.auth-field input,
.auth-field .form-control {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #0f172a;
    background: #fff !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field .form-control:focus {
    outline: none;
    border-color: #0ea5e9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
    background: #fff !important;
}

.auth-field select {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #475569;
}

.auth-btn {
    width: 100%;
    padding: 0.8rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 650;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    background: #0284c7;
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.28);
    transition: background 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.auth-btn:hover:not(:disabled) {
    background: #0369a1;
    filter: none;
    transform: translateY(-1px);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-back {
    margin-top: 1.35rem;
    text-align: center;
}

.auth-back a {
    color: #0284c7;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-back a:hover {
    color: #0284c7;
    text-decoration: underline;
}

.auth-validation {
    color: #dc2626;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-page__brand {
        min-height: 240px;
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .auth-page__brand-inner {
        margin-top: 0.75rem;
        margin-bottom: 0;
    }

    .auth-page__headline {
        font-size: 1.55rem;
    }

    .auth-page__features {
        display: none;
    }

    .auth-page__panel {
        padding: 1.75rem 1.25rem 2.25rem;
        background: #f8fafc;
    }

    .auth-card {
        border-radius: 14px;
    }
}
