/* ==========================================================================
   Neo Login — Admin sign-in page (theme-independent, standalone document)
   Scope: application/views/admin/login.php only.
   ========================================================================== */

:root {
    --neo-login-navy: #10233c;
    --neo-login-navy-soft: #16304f;
    --neo-login-blue: #1a73e8;
    --neo-login-blue-dark: #135cba;
    --neo-login-blue-tint: #e8f0fe;
    --neo-login-ink: #1c2733;
    --neo-login-muted: #6b7c90;
    --neo-login-border: #e3e9f1;
    --neo-login-danger: #b3261e;
    --neo-login-danger-bg: #fdecec;
    --neo-login-success: #14804a;
    --neo-login-success-bg: #eaf6ef;
    --neo-login-radius-lg: 18px;
    --neo-login-radius-md: 10px;
    --neo-login-shadow: 0 24px 60px rgba(8, 18, 33, 0.35), 0 2px 10px rgba(8, 18, 33, 0.12);
}

html, body.neo-login-body {
    height: 100%;
}

body.neo-login-body {
    margin: 0;
    width: 100%;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: var(--neo-login-ink);
    text-align: left;
    -webkit-font-smoothing: antialiased;
}

.neo-login-page {
    box-sizing: border-box;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background-color: var(--neo-login-navy);
    background-image:
        linear-gradient(180deg, rgba(11, 24, 43, 0.90) 0%, rgba(16, 35, 60, 0.96) 100%),
        var(--neo-login-bg-image, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.neo-login-page *,
.neo-login-page *::before,
.neo-login-page *::after {
    box-sizing: border-box;
}

.neo-login-shell {
    width: 100%;
    max-width: 1040px;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
}

/* ---- Card ---- */

.neo-login-card-col {
    flex: 1 1 380px;
    max-width: 380px;
    min-width: 0;
    display: flex;
    align-items: center;
}

.neo-login-card {
    width: 380px;
    max-width: 100%;
    background: #ffffff;
    border-radius: var(--neo-login-radius-lg);
    box-shadow: var(--neo-login-shadow);
    padding: 40px 34px 32px;
}

.neo-login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.neo-login-logo {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
}

.neo-login-title {
    margin: 0 0 22px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--neo-login-navy);
    text-align: center;
}

.neo-login-card .alert {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: var(--neo-login-radius-md);
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid transparent;
}

.neo-login-card .alert-danger {
    background: var(--neo-login-danger-bg);
    border-color: rgba(179, 38, 30, 0.18);
    color: var(--neo-login-danger);
}

.neo-login-card .alert-success {
    background: var(--neo-login-success-bg);
    border-color: rgba(20, 128, 74, 0.18);
    color: var(--neo-login-success);
}

/* ---- Form ---- */

.neo-login-form {
    margin: 0;
}

.neo-login-field {
    position: relative;
    margin-bottom: 16px;
}

.neo-login-field-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neo-login-muted);
    pointer-events: none;
}

.neo-login-field-icon svg {
    width: 18px;
    height: 18px;
}

.neo-login-input.form-control {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 44px;
    background: #f7f9fc;
    border: 1px solid var(--neo-login-border);
    border-radius: var(--neo-login-radius-md);
    font-family: inherit;
    font-size: 14px;
    color: var(--neo-login-ink);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

.neo-login-input.form-control::placeholder {
    color: #9aa8ba;
}

.neo-login-input.form-control:focus {
    background: #ffffff;
    border-color: var(--neo-login-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.neo-login-input.form-control.input-error {
    border-color: var(--neo-login-danger);
    background: var(--neo-login-danger-bg);
}

.neo-login-error {
    display: block;
    min-height: 0;
    margin-top: 5px;
    font-size: 12px;
    color: var(--neo-login-danger);
}

.neo-login-error:empty {
    display: none;
}

/* ---- Captcha ---- */

.neo-login-captcha-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.neo-login-captcha-image {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 10px;
    background: #f7f9fc;
    border: 1px solid var(--neo-login-border);
    border-radius: var(--neo-login-radius-md);
    flex: 1 1 150px;
    min-width: 150px;
    overflow: hidden;
}

.neo-login-captcha-image #captcha_image {
    display: flex;
    align-items: center;
    line-height: 0;
}

.neo-login-captcha-image #captcha_image img {
    max-height: 32px;
    display: block;
}

.neo-login-captcha-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-left: auto;
    border-radius: 50%;
    color: var(--neo-login-blue);
    cursor: pointer;
    flex-shrink: 0;
}

.neo-login-captcha-refresh:hover {
    background: var(--neo-login-blue-tint);
}

.neo-login-captcha-refresh svg {
    width: 16px;
    height: 16px;
}

.neo-login-captcha-input {
    flex: 1 1 130px;
    min-width: 130px;
}

.neo-login-captcha-input .neo-login-input.form-control {
    padding-left: 14px;
}

/* ---- Submit / links ---- */

.neo-login-submit {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: none;
    border-radius: var(--neo-login-radius-md);
    background: var(--neo-login-blue);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
    cursor: pointer;
    transition: background-color .15s ease, transform .05s ease;
}

.neo-login-submit:hover {
    background: var(--neo-login-blue-dark);
}

.neo-login-submit:active {
    transform: translateY(1px);
}

.neo-login-submit:focus-visible {
    outline: 3px solid rgba(26, 115, 232, 0.35);
    outline-offset: 2px;
}

.neo-login-forgot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--neo-login-muted);
    text-decoration: none;
}

.neo-login-forgot svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.neo-login-forgot:hover,
.neo-login-forgot:focus {
    color: var(--neo-login-blue);
}

/* ---- Notice / "What's new" panel ---- */

.neo-login-notice-col {
    flex: 1 1 380px;
    max-width: 420px;
    min-width: 0;
    display: flex;
    align-items: center;
}

.neo-login-notice {
    width: 100%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--neo-login-radius-lg);
    padding: 28px 26px;
    backdrop-filter: blur(6px);
}

.neo-login-notice-title {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.neo-login-notice-body {
    max-height: 320px;
    overflow-y: auto;
}

.neo-login-notice-body h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.neo-login-notice-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    word-break: break-word;
}

.neo-login-notice-body p a.more,
.neo-login-notice-body p a {
    color: #bcd6fb;
    font-weight: 600;
    text-decoration: none;
}

.neo-login-notice-body p a.more:hover,
.neo-login-notice-body p a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.neo-login-notice-body .logdivider {
    background: rgba(255, 255, 255, 0.16);
    width: 100%;
    height: 1px;
    margin: 14px 0;
}

.neo-login-notice-body .logdivider:last-child {
    display: none;
}

/* mCustomScrollbar theming to match the dark panel */
.neo-login-notice-body.mCS_no_scrollbar {
    overflow-y: auto !important;
}

.neo-login-notice .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background: rgba(255, 255, 255, 0.35) !important;
}

.neo-login-notice .mCSB_scrollTools .mCSB_draggerRail {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ---- Responsive ---- */

@media (max-width: 992px) {
    .neo-login-notice-col {
        display: none;
    }

    .neo-login-shell {
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .neo-login-page {
        padding: 20px 14px;
        align-items: flex-start;
        padding-top: 48px;
    }

    .neo-login-card {
        width: 100%;
        padding: 32px 22px 26px;
        border-radius: 14px;
    }

    .neo-login-title {
        font-size: 18px;
    }

    .neo-login-captcha-row {
        flex-wrap: wrap;
    }

    .neo-login-captcha-image,
    .neo-login-captcha-input {
        flex-basis: 100%;
    }
}
