﻿:root {
    --brand: #0d6efd;
    --indigo: #6366f1;
    --sky: #38bdf8;
    --mint: #22c55e;
    --ink: #0b1220;
}

.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #f8fafc;
}

.gradient-bg,
.gradient-bg .Gradient__canvas,
.gradient-bg .gradient-overlay,
.gradient-bg .stripe-bands {
    position: fixed;
    inset: 0;
    z-index: -1 !important;
    display: none !important;
    background: none !important;
}

.auth-page {
    position: relative;
    max-width: 1100px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
    transition: opacity .25s ease;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 1.25rem;
}

@media (max-width:1200px) {
    .auth-layout {
        grid-template-columns: 1.2fr .8fr;
    }
}

@media (max-width:992px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        order: 2;
    }
}

.card {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(2,6,23,.08);
    position: relative;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 10px 24px rgba(2,6,23,.05);
    position: relative;
}

.dropdown-menu {
    z-index: 2000 !important;
}

.auth-page, .auth-layout, .auth-card, .auth-aside {
    position: relative;
    z-index: auto;
}

    .auth-page * {
        position: relative;
        z-index: auto;
    }

#ppHeader,
#smMenu,
#menu {
    position: relative;
    z-index: 6000;
}

.auth-header .header-text {
    flex: 1 1 auto;
    min-width: 0;
}

.auth-header .title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .2px;
    color: #0f172a;
}

.auth-header .subtitle {
    color: #4b5563;
    margin-top: .15rem;
    font-size: .95rem;
}

    .auth-header .subtitle a {
        color: #0b5ed7;
        text-decoration: none;
    }

        .auth-header .subtitle a:hover {
            text-decoration: underline;
        }

.date-pill {
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    align-items: center;
    width: 84px;
    min-width: 84px;
    height: 86px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 8px 18px rgba(2,6,23,.06);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    box-sizing: border-box;
}

    .date-pill .month {
        width: 100%;
        text-align: center;
        font-weight: 800;
        font-size: .85rem;
        color: #0b5ed7;
        background: rgba(13,110,253,.08);
        padding: .25rem .35rem;
        letter-spacing: .6px;
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
    }

    .date-pill .day {
        font-size: 1.55rem;
        line-height: 1.1;
        font-weight: 900;
        color: #0f172a;
        padding-top: .15rem;
    }

    .date-pill .year {
        font-size: .8rem;
        color: #6b7280;
        padding-bottom: .35rem;
    }

.auth-card .brand {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.auth-card .logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    background: var(--brand);
    box-shadow: 0 10px 24px rgba(13,110,253,.33);
}

.brand-text .name {
    font-weight: 900;
    line-height: 1;
    font-size: 1.08rem;
    color: #0f172a;
}

.brand-text .sub {
    color: #6b7280;
    font-size: .93rem;
}

.page-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.page-header-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f172a;
    margin: 0 0 .3rem;
    line-height: 1.2;
}

.page-header-sub {
    font-size: .93rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.form-label {
    font-weight: 700;
}

.form-control-lg {
    border-radius: 11px;
}

.form-control:focus {
    border-color: #84b1ff;
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.18);
}

.form-control[readonly] {
    background: #f1f5f9;
    color: #475569;
    cursor: default;
}

.readonly-display {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    cursor: default;
}

.links p {
    color: #374151;
    font-size: .96rem;
}

.links a {
    color: var(--brand);
    text-decoration: none;
}

    .links a:hover {
        text-decoration: underline;
    }

.form-hint {
    color: #6b7280;
    font-size: .85rem;
    margin-top: .25rem;
}

.auth-aside .h6 {
    font-weight: 700;
}

.auth-aside .card-body {
    padding: 1rem 1.25rem;
}

.password-field .pw-wrapper {
    position: relative;
}

.password-field .pw-toggle {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: .25rem;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
}

    .password-field .pw-toggle:hover {
        background: rgba(13,110,253,.08);
        color: #0b5ed7;
    }

    .password-field .pw-toggle svg {
        fill: currentColor;
        display: block;
    }

.caps-hint {
    font-size: .82rem;
    color: #b91c1c;
    margin-top: .25rem;
}

#left, #right {
    position: relative;
    z-index: auto;
}

.gradient-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    display: none;
}

.stripe-bands {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
    background: none;
}

.gradient-bg canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: none;
}

.auth-page.await-gradient {
    opacity: 1;
}

.auth-card form .mb-3 {
    margin-bottom: .75rem !important;
}

.auth-card form .form-label {
    margin-bottom: .25rem;
}

.auth-card .form-control-lg {
    padding: .6rem .8rem;
}

.auth-card .btn-login.btn-lg {
    padding: .7rem 1rem;
}

.links p {
    margin-bottom: .5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #111827;
    background: #f1f5f9;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: .1rem .4rem;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .08s ease;
}

    .btn:hover {
        background: #e2e8f0;
        border-color: #cbd5e1;
        box-shadow: 0 2px 6px rgba(0,0,0,.08);
        transform: translateY(-2px);
    }

    .btn:active {
        background: #e2e8f0;
        box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
        transform: translateY(0);
    }

    .btn:focus-visible {
        outline: 2px solid #9ca3af;
        outline-offset: 2px;
}

.btn-primary {
    background: #2563eb;
    color: #fff !important;
    border: 1px solid #1d4ed8;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    padding: .55rem 1.25rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

    .btn-primary:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
        box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4);
        transform: translateY(-2px);
    }

.btn-secondary {
    background: #f9fafb;
    color: #0f172a !important;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    padding: .55rem 1.25rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .btn-secondary:hover {
        background: #e5e7eb;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

.btn-auth {
    flex: 1;
    justify-content: center;
    text-align: center;
}

    .btn-auth.disabled {
        pointer-events: none;
        opacity: .6;
    }

.password-field .pw-wrapper {
    position: relative;
}

.btn-login {
    font-size: 1.25rem;
    padding: .8rem 1.25rem;
    border-radius: 12px;
    line-height: 1.25;
    width: 100%;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

    .btn-login:hover,
    .btn-login:active {
        transform: none;
    }

.auth-card .btn-login {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    min-width: 0;
}

.password-field .pw-wrapper input {
    padding-right: 44px;
}

.password-field .pw-wrapper input::-ms-reveal {
    display: none;
}

.password-field .pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 9px;
    background: rgba(15,23,42,.06);
    cursor: pointer;
}

    .password-field .pw-toggle:hover {
        background: rgba(15,23,42,.09);
    }

    .password-field .pw-toggle[aria-pressed="true"] svg {
        opacity: .75;
    }

.caps-hint {
    margin-top: .35rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .9rem;
    font-weight: 600;
    color: #b45309;
    background: #ffedd5;
    border: 1px solid #fed7aa;
    padding: .35rem .6rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(245,158,11,.15);
}

.success-banner {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: #166534;
}

    .success-banner svg {
        flex-shrink: 0;
        margin-top: .1rem;
    }

.field-validation-error {
    font-size: .85rem;
    font-weight: 600;
    color: #dc2626;
    margin-top: .35rem;
}

.login-error {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: .55rem .75rem;
    margin-top: .75rem;
}

    .login-error svg {
        flex-shrink: 0;
    }

    .login-error ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

.d-none {
    display: none !important;
}

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 3000;
    display: grid;
    gap: .5rem;
}

.toast-pop {
    background: #111827;
    color: #fff;
    border-radius: 10px;
    padding: .65rem .9rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(-6px);
    animation: toast-in .18s ease forwards, toast-out .22s ease 3.2s forwards;
}

    .toast-pop.warning {
        background: #f59e0b;
        color: #111827;
    }

    .toast-pop.success {
        background: #16a34a;
    }

    .toast-pop.error {
        background: #dc2626;
    }

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}
