/* Styles extracted from auth login view */
:root {
    --surface: #f4f7fb;
    --surface-2: #ffffff;
    --brand-dark: #0d1b2a;
    --brand: #0052cc;
    --brand-alt: #ffb703;
    --primary: 212 76% 40%;
}

body.login-modern-body {
    font-family: 'Inter', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--surface);
    color: var(--brand-dark);
    min-height: 100vh;
}

/* Overlay spinner (hidden by default) */
#pageOverlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.42);
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
}
#pageOverlay .spinner-border{ width:3rem; height:3rem; }

.btn-google-inline{ display:inline-flex; align-items:center; gap:10px; }

/* Small responsive tweaks kept local to login page */
@media (max-width:900px){
    .btn-google-inline{ width:100%; justify-content:center; }
}

/* SweetAlert2 positioning overrides to ensure toasts appear in the visible top-right corner
   (some admin themes set layout transforms/containers which can change default behavior).
   These rules force the container to top-right and above the page overlay. */
.swal2-container{
    z-index:20000 !important; /* ensure modals appear above overlays */
}

.swal2-container.swal2-top-end{
    position:fixed !important;
    top:1rem !important;
    right:1rem !important;
    left:auto !important;
    bottom:auto !important;
    align-items:flex-start !important; /* place items at top */
    justify-content:flex-end !important; /* align to right */
    z-index:20000 !important; /* above our overlay (9999) */
    padding:0 !important;
    pointer-events:none !important; /* allow clicks through unused area */
}
.swal2-container.swal2-top-end .swal2-toast {
    pointer-events: auto; /* allow interacting with the toast */
}

.text-primary {
    color: hsl(var(--primary, 212 76% 40%)) !important;
}

.btn-rounded {
    border-radius: 999px;
}

/* Login layout split hero + card */

.login-layout-wrapper {
    min-height: 100vh;
    padding: 0;
    position: relative;
    background: linear-gradient(120deg, rgba(0, 82, 204, 0.78), rgba(0, 82, 204, 0.35)),
        url('../logo/hero-background.jpg') center/cover no-repeat;
    isolation: isolate;
}

.login-layout-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(244, 247, 251, 0.05), rgba(244, 247, 251, 0.9));
    z-index: 0;
}

.login-landing-inner {
    position: relative;
    z-index: 1;
    min-height: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.login-row {
    align-items: stretch;
    min-height: 100vh;
    gap: 0;
    flex-wrap: nowrap;
    background:
        linear-gradient(180deg, rgba(18, 62, 153, 0.75) 0%, rgba(63, 142, 230, 0.6) 55%, rgba(208, 235, 255, 0.8) 100%),
        url('../logo/hero-background.jpg') center/cover no-repeat;
}

.login-col-copy,
.login-col-card {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}

.login-col-copy {
    flex: 0 0 65%;
    max-width: 65%;
    justify-content: center;
}

.login-col-card {
    flex: 0 0 35%;
    max-width: 35%;
    background: rgba(255, 255, 255, 0.98);
    justify-content: center;
}

.login-col-card .login-card-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-copy-panel {
    background: rgba(22, 86, 181, 0.3);
    border-radius: 0;
    padding: 4rem 3rem 4rem 150px;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
    height: 100%;
    backdrop-filter: blur(6px);
}

.hero-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.hero-eyebrow {
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--brand-alt);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.05rem;
    max-width: 520px;
}

.login-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.login-benefits i {
    color: var(--brand-alt);
}

.login-metrics {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 0.9rem 1.25rem;
    backdrop-filter: blur(6px);
}

.login-metrics small {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    font-size: 0.7rem;
}

.login-metrics strong {
    font-size: 1.5rem;
    font-weight: 700;
}

.back-link {
    border-width: 1px;
    font-weight: 600;
    background: rgba(255, 183, 3, 0.18);
    border-color: rgba(255, 183, 3, 0.6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.25rem;
}

.back-link:hover {
    background: rgba(255, 183, 3, 0.35);
    color: #fff;
}

.login-card-modern {
    background: transparent;
    border-radius: 0;
    padding: 0 3rem;
    box-shadow: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-divider {
    position: relative;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(13, 27, 42, 0.5);
}

.login-divider::before,
.login-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: rgba(13, 27, 42, 0.1);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.login-divider span {
    padding: 0 0.5rem;
}

.login-card-modern .form-control {
    border-radius: 0.85rem;
    border: 1px solid rgba(13, 27, 42, 0.08);
    padding: 0.9rem 1rem;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(224, 241, 255, 0.92) 100%);
    color: #0d1b2a;
    box-shadow: 0 10px 25px rgba(15, 30, 75, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(6px);
}

.login-card-modern .form-control::placeholder {
    color: rgba(13, 27, 42, 0.45);
}

.login-card-modern .form-control:focus {
    border-color: rgba(0, 148, 255, 0.7);
    box-shadow: 0 12px 28px rgba(0, 82, 204, 0.18);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(205, 235, 255, 0.95) 100%);
}

.glass-chip {
    border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 991px){
    .login-layout-wrapper {
        padding: 2rem 0;
    }

    .login-row {
        min-height: auto;
        gap: 1.5rem;
        flex-wrap: wrap;
        background: none;
    }

    .login-col-copy,
    .login-col-card {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: auto;
    }

    .login-copy-panel {
        padding: 2rem;
        margin-bottom: 1.5rem;
        border-radius: 1.5rem;
    }

    .login-card-modern {
        padding: 2rem 1.5rem;
    }
}
