* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    background: #f8f9ff;
    color: #0b1c30;
}

.login-page {
    min-height: 100vh;
    display: flex;
    background: #f8f9ff;
}

.login-brand-section {
    width: 45%;
    min-height: 100vh;
    background: #000d33;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-brand-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(255,255,255,.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(101,157,254,.15) 0%,
            transparent 50%
        );
}

.login-brand-section::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .1;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,.05) 10px,
            rgba(255,255,255,.05) 20px
        );
}

.brand-content {
    position: relative;
    z-index: 2;
    margin-top: 32px;
}

.brand-logo {
    height: 128px;
    width: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,.12);
    margin-bottom: 32px;
}

.brand-title {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
    margin: 0 0 16px;
}

.brand-description {
    max-width: 520px;
    font-size: 18px;
    line-height: 28px;
    color: #b4c5ff;
    margin: 0;
}

.brand-icons {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 16px;
    opacity: .5;
}

.brand-icons .material-symbols-outlined {
    font-size: 36px;
}

.login-form-section {
    width: 55%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: #eff4ff;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #c5c6d2;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 6px rgba(0,32,96,.05);
}

.mobile-logo {
    display: none;
    justify-content: center;
    margin: 16px 0 32px;
}

.mobile-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.login-heading {
    text-align: center;
    margin-bottom: 32px;
}

.login-heading h2 {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #0b1c30;
}

.login-heading p {
    font-size: 16px;
    line-height: 24px;
    color: #444650;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    line-height: 16px;
    font-weight: 600;
    color: #0b1c30;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #757681;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 12px 40px;
    background: #fff;
    border: 1px solid #c5c6d2;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #0b1c30;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.form-input::placeholder {
    color: #757681;
}

.form-input:focus {
    border-color: #115cb9;
    box-shadow: 0 0 0 2px rgba(17,92,185,.15);
}

.form-input.input-error {
    border-color: #ba1a1a;
}

.form-input.input-error:focus {
    border-color: #ba1a1a;
    box-shadow: 0 0 0 2px rgba(186,26,26,.12);
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: #757681;
    cursor: pointer;
}

.password-toggle:hover {
    color: #0b1c30;
}


/* =====================================================
   RED LOGIN ERROR ALERT
===================================================== */

.login-alert {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    margin-bottom: 20px;

    background: #fff1f1;
    border: 1px solid #f1a7a7;
    border-left: 4px solid #dc2626;
    border-radius: 8px;

    color: #991b1b;

    animation: alertSlideIn .2s ease-out;
    transition:
        opacity .2s ease,
        transform .2s ease;
}

.login-alert.alert-hide {
    opacity: 0;
    transform: translateY(-5px);
}

.login-alert .alert-icon {
    color: #dc2626;
    font-size: 22px;
    flex-shrink: 0;
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.alert-content strong {
    font-size: 14px;
    line-height: 20px;
    color: #991b1b;
}

.alert-content span {
    font-size: 13px;
    line-height: 19px;
    color: #b42318;
}

.alert-close {
    border: 0;
    background: transparent;
    color: #991b1b;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close .material-symbols-outlined {
    font-size: 18px;
}

.alert-close:hover {
    color: #7f1d1d;
}

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

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

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember-wrapper {
    display: flex;
    align-items: center;
}

.remember-wrapper input {
    width: 16px;
    height: 16px;
    accent-color: #115cb9;
    cursor: pointer;
}

.remember-wrapper label {
    margin-left: 8px;
    font-size: 12px;
    line-height: 16px;
    color: #444650;
    cursor: pointer;
}

.forgot-password {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: #115cb9;
    text-decoration: none;
}

.forgot-password:hover {
    color: #659dfe;
}

.sign-in-button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: #000d33;
    color: #fff;
    font-size: 14px;
    line-height: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background .2s ease,
        transform .15s ease;
}

.sign-in-button:hover {
    background: #2c4383;
}

.sign-in-button:active {
    transform: scale(.98);
}

.main-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #c5c6d2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-security,
.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #444650;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
}

.footer-security .material-symbols-outlined {
    font-size: 16px;
}

.footer-copyright {
    color: #757681;
}

.dashboard-page {
    min-height: 100vh;
    background: #eff4ff;
    padding: 40px;
}

.dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-topbar h1 {
    margin: 0 0 6px;
    font-family: "Hanken Grotesk", sans-serif;
}

.dashboard-topbar p {
    margin: 0;
    color: #444650;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #000d33;
    color: #fff;
    text-decoration: none;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #c5c6d2;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0,32,96,.05);
}

.dashboard-icon {
    font-size: 42px;
    color: #115cb9;
}

.dashboard-card h2 {
    font-family: "Hanken Grotesk", sans-serif;
}

.dashboard-card p {
    color: #444650;
}

@media (max-width: 767px) {

    .login-page {
        display: block;
    }

    .login-brand-section {
        display: none;
    }

    .login-form-section {
        width: 100%;
        min-height: 100vh;
        padding: 16px;
    }

    .login-card {
        max-width: 440px;
        padding: 24px 16px;
    }

    .mobile-logo {
        display: flex;
    }

    .login-heading h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .dashboard-page {
        padding: 20px 16px;
    }

    .dashboard-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

.material-symbols-outlined {
    font-variation-settings:
        "FILL" 0,
        "wght" 400,
        "GRAD" 0,
        "opsz" 24;
}
/* Prevent Material Symbols text flash while font is loading */
.material-symbols-outlined,
.material-icons {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;

    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}


