/* Sentinel Control Center - accessible login surface */

.login-page {
    position: relative;
    min-height: 100svh;
    overflow-x: hidden;
    color: #f7f9fc;
    background:
        radial-gradient(circle at 12% 18%, rgba(10, 132, 255, .2), transparent 34rem),
        radial-gradient(circle at 88% 82%, rgba(0, 194, 168, .12), transparent 30rem),
        #07111d;
}

.login-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-grid {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.login-wrapper {
    min-height: 100svh;
    padding: clamp(1rem, 3vw, 2.5rem);
}

.login-layout {
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
    width: min(1120px, 100%);
    border: 1px solid rgba(128, 183, 235, .25);
    border-radius: 28px;
    background: rgba(11, 25, 41, .96);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .48),
        0 0 0 1px rgba(255, 255, 255, .025) inset;
}

.login-hero,
.login-panel {
    padding: clamp(2rem, 4vw, 3.75rem);
}

.login-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(128, 183, 235, .16);
    background: linear-gradient(145deg, rgba(10, 132, 255, .12), transparent 54%);
}

.login-logo-link {
    display: inline-flex;
    align-self: flex-start;
    width: min(230px, 72%);
    margin: 0 0 2rem;
    border-radius: 10px;
    transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.login-logo-link:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.login-logo-link:focus-visible {
    outline: 3px solid rgba(77, 168, 255, .65);
    outline-offset: 6px;
    box-shadow: 0 0 24px rgba(77, 168, 255, .18);
}

.login-logo {
    width: 100%;
    height: auto;
    margin: 0;
}

.login-hero .section-label,
.login-header .section-label {
    align-self: flex-start;
    margin-bottom: 1rem;
    color: #78bdff;
    background: rgba(10, 132, 255, .14);
}

.login-hero h1 {
    max-width: 12ch;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.6vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.login-hero > p {
    max-width: 48ch;
    margin: 1.35rem 0 0;
    color: #cbd8e7;
    font-size: 1rem;
    line-height: 1.7;
}

.login-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 2rem;
}

.login-features > div {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 48px;
    padding: .75rem .85rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    color: #e7eef7;
    background: rgba(255, 255, 255, .04);
    font-size: .9rem;
    font-weight: 600;
}

.login-features i {
    color: #65b4ff;
    font-size: 1.05rem;
}

.login-panel {
    display: grid;
    align-items: center;
    background: #101d2d;
}

.login-card {
    width: 100%;
    max-width: 470px;
    margin-inline: auto;
}

.login-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.login-header p {
    max-width: 38ch;
    margin: .8rem 0 1.75rem;
    color: #c8d3e0;
    font-size: 1rem;
    line-height: 1.6;
}

.login-form {
    width: min(100%, 420px);
    gap: 1rem;
}

#forgotPasswordForm {
    width: min(100%, 420px);
    margin: 1.25rem auto 0;
}

#forgotPasswordForm .input-wrapper {
    width: 100%;
}

.form-group {
    gap: .45rem;
}

.form-group > label {
    color: #f2f6fb;
    font-size: .94rem;
    font-weight: 700;
}

.input-wrapper > i {
    position: absolute;
    top: 50%;
    left: .9rem;
    z-index: 1;
    color: #8fb3d8;
    font-size: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrapper input,
.password-wrapper input {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    padding: .72rem 2.75rem;
    border: 1px solid #435a73;
    color: #fff;
    background: #081421;
    font-size: .95rem;
    line-height: 1.35;
    caret-color: #4da8ff;
}

.input-wrapper input::placeholder {
    color: #8fa0b4;
    opacity: 1;
}

.input-wrapper input:hover {
    border-color: #607b98;
}

.input-wrapper input:focus {
    border-color: #4da8ff;
    outline: 3px solid rgba(77, 168, 255, .2);
    box-shadow: 0 0 0 1px #4da8ff inset;
}

.password-toggle {
    right: .45rem;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #c8d3e0;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    outline: none;
}

.login-options,
.remember-me {
    align-items: center;
}

.remember-me {
    display: inline-flex;
    gap: .55rem;
    color: #d5deea;
    font-size: .9rem;
    cursor: pointer;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: #0a84ff;
}

.forgot-password {
    color: #78bdff;
    font-size: .9rem;
    font-weight: 600;
}

.forgot-password:hover,
.forgot-password:focus-visible {
    color: #fff;
}

.login-button {
    gap: .75rem;
    min-height: 56px;
    margin-top: .25rem;
    border: 1px solid #359dff;
    color: #fff;
    background: linear-gradient(135deg, #0a84ff, #0874dd);
    box-shadow: 0 12px 28px rgba(10, 132, 255, .24);
    font-size: 1rem;
    cursor: pointer;
}

.login-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #2394ff, #0a84ff);
    transform: translateY(-1px);
}

.login-button:disabled {
    opacity: .7;
    cursor: wait;
}

.login-message {
    display: flex;
    align-items: center;
    min-height: 0;
    margin-top: 1rem;
    padding: 0;
    border: 0;
    color: #d7e0eb;
    font-size: .94rem;
    line-height: 1.45;
}

.login-message:empty {
    display: none;
}

.login-message.error,
.login-message.success {
    min-height: 46px;
    padding: .75rem .9rem;
    border-radius: 10px;
}

.login-message.error {
    border: 1px solid rgba(255, 120, 111, .45);
    color: #ffd0cc;
    background: rgba(229, 72, 77, .14);
}

.login-message.success {
    border: 1px solid rgba(78, 207, 146, .38);
    color: #bdf5d7;
    background: rgba(34, 197, 94, .12);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 1.75rem 0 1rem;
    color: #9dacbd;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, .1);
    content: '';
}

.status-item {
    min-height: 62px;
    border-color: rgba(151, 184, 217, .18);
    background: #0b1725;
}

.status-item strong {
    color: #f2f6fb;
    font-size: .86rem;
}

.status-item small {
    color: #aebdce;
    font-size: .78rem;
}

.login-footer {
    display: grid;
    gap: .65rem;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: #b9c6d5;
    font-size: .8rem;
    line-height: 1.5;
}

.security-note i {
    margin-top: .15rem;
    color: #4ecf92;
}

.login-version {
    color: #8999ac;
    font-size: .76rem;
}

.login-version strong {
    margin-left: .35rem;
    color: #cbd6e3;
}

.server-box {
    display: grid;
    justify-items: center;
    gap: .85rem;
    border-color: rgba(77, 168, 255, .34);
    color: #f7f9fc;
    background: #101d2d;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
    text-align: center;
}

.server-box h3,
.server-box p {
    margin: 0;
}

.server-box p {
    color: #c8d3e0;
}

.reset-wrapper {
    display: grid;
    place-items: center;
}

.reset-layout {
    grid-template-columns: minmax(0, 560px);
    width: min(560px, 100%);
}

.reset-layout .login-panel {
    border-radius: inherit;
}

.reset-form {
    width: min(100%, 380px);
    margin-top: 1.5rem;
    margin-inline: auto;
}

.reset-actions {
    display: grid;
    gap: .75rem;
    margin-top: .35rem;
}

.reset-login-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    color: #78bdff;
    font-weight: 700;
}

.reset-login-link:hover,
.reset-login-link:focus-visible {
    color: #fff;
}

.reset-help {
    margin: .75rem 0 0;
    color: #aebdce;
    font-size: .88rem;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .login-layout {
        grid-template-columns: 1fr;
        width: min(620px, 100%);
    }

    .login-hero {
        display: none;
    }

    .login-panel {
        padding: clamp(1.5rem, 6vw, 3rem);
    }
}

@media (max-width: 560px) {
    .login-wrapper {
        align-items: start;
        padding: .75rem;
    }

    .login-layout {
        border-radius: 18px;
    }

    .login-panel {
        padding: 1.35rem 1.1rem;
    }

    .login-header h2 {
        font-size: 2rem;
    }

    .login-options {
        align-items: flex-start;
    }

    .platform-status {
        grid-template-columns: 1fr 1fr;
        gap: .55rem;
    }

    .status-item {
        padding: .65rem;
    }
}
