﻿:root {
    --red: #e81213;
    --red-deep: #7a0f10;
    --red-panel: #c10f10;
    --ink: #1c1c1e;
    --ink-soft: #6f6e6c;
    --paper: #ffffff;
    --hairline: #e3e1de;
}

body {
    overflow: hidden;
}

.login-scope, .login-scope * {
    box-sizing: border-box;
}

.login-scope {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

.stage {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 42% 58%;
}

.panel-brand {
    position: relative;
    background: linear-gradient(165deg, var(--red-panel) 0%, var(--red-deep) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 44px;
    overflow: hidden;
}

.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.12) 1.4px, transparent 1.4px);
    background-size: 22px 22px;
    opacity: 0.5;
}

.panel-brand__top {
    position: relative;
    z-index: 1;
}

.panel-brand img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.panel-brand__mid {
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

    .panel-brand__mid h1 {
        font-family: 'Newsreader', serif;
        font-weight: 500;
        font-style: italic;
        font-size: 2.1rem;
        line-height: 1.2;
        margin: 0 0 14px;
    }

    .panel-brand__mid p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: rgba(255,255,255,0.82);
        /* max-width: 30ch;*/
        margin: 0;
    }

.ecg-wrap {
    position: relative;
    z-index: 1;
    margin-top: 36px;
    height: 60px;
}

.ecg-line {
    fill: none;
    stroke: rgba(255,255,255,0.85);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw 3.2s ease-in-out infinite;
}

@keyframes draw {
    0% {
        stroke-dashoffset: 400;
    }

    55% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -400;
    }
}

.panel-brand__foot {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .panel-brand__foot svg {
        flex-shrink: 0;
        opacity: 0.75;
    }

.panel-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 40px;
}

.form-col {
    width: 100%;
    max-width: 420px;
}

.form-col__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 600;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-col h2 {
    font-family: 'Newsreader', serif;
    font-weight: 600;
    font-size: 1.9rem;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.form-col p.sub {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin: 0 0 10px;
}

.login-scope .field {
    margin-bottom: 15px;
    position: relative;
}

    .login-scope .field label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--ink-soft);
        margin-bottom: 8px;
        transition: color 0.2s ease;
    }

        .login-scope .field label svg {
            flex-shrink: 0;
            opacity: 0.8;
            transition: opacity 0.2s ease, stroke 0.2s ease;
        }

    .login-scope .field:focus-within label {
        color: var(--red);
    }

        .login-scope .field:focus-within label svg {
            opacity: 1;
            stroke: var(--red);
        }

.input-row {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-row .field-icon {
        position: absolute;
        left: 2px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ink-soft);
        pointer-events: none;
        transition: color 0.2s ease;
    }

.login-scope .field:focus-within .input-row .field-icon {
    color: var(--red);
}

.input-row .pwd-toggle {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 4px;
    margin: 0;
    color: var(--ink-soft);
    cursor: pointer;
    line-height: 0;
    transition: color 0.2s ease;
}

    .input-row .pwd-toggle:hover {
        color: var(--red);
    }

    .input-row .pwd-toggle .icon-off {
        display: none;
    }

    .input-row .pwd-toggle.is-visible .icon-on {
        display: none;
    }

    .input-row .pwd-toggle.is-visible .icon-off {
        display: flex;
    }

.login-scope .form-control,
.login-scope .form-select {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid var(--hairline);
    border-radius: 0;
    background: transparent;
    padding: 6px 2px 10px 26px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    transition: border-color 0.25s ease;
}

    .login-scope .form-control[type="password"] {
        padding-right: 30px;
    }

.login-scope .form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f6e6c' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
}

    .login-scope .form-control:focus,
    .login-scope .form-select:focus {
        outline: none;
        border-bottom-color: var(--red);
    }

.login-scope .form-control:-webkit-autofill,
.login-scope .form-control:-webkit-autofill:hover,
.login-scope .form-control:-webkit-autofill:focus,
.login-scope .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--ink) !important;
    caret-color: var(--ink);
    transition: background-color 9999s ease-in-out 0s;
}

.field-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.5px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.login-scope .field:focus-within .field-line {
    transform: scaleX(1);
}

.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 30px;
    opacity: 0;
    animation: fadeUp 0.55s ease 0.42s forwards;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    cursor: pointer;
}

    .remember-row input {
        width: 15px;
        height: 15px;
        accent-color: var(--red);
        cursor: pointer;
    }

.forgot-link {
    font-size: 0.85rem;
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

    .forgot-link:hover {
        border-color: var(--red);
    }

.btn-submit {
    width: 100%;
    border: none;
    border-radius: 4px;
    padding: 15px;
    background: var(--ink);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.15s ease;
}

    .btn-submit span.label-wrap {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-submit .arrow {
        transition: transform 0.25s ease;
        display: inline-flex;
    }

    .btn-submit:hover .arrow {
        transform: translateX(5px);
    }

    .btn-submit::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--red);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.35s cubic-bezier(0.65,0,0.35,1);
    }

    .btn-submit:hover::before {
        transform: scaleX(1);
    }

    .btn-submit:active {
        transform: scale(0.99);
    }

.btn-outline {
    width: 100%;
    border: 1.5px solid var(--hairline);
    border-radius: 4px;
    padding: 13.5px;
    background: transparent;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    margin-top: 12px;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
    opacity: 0;
    animation: fadeUp 0.55s ease 0.60s forwards;
}

    .btn-outline:hover {
        border-color: var(--red);
        color: var(--red);
        background: #fdeceb;
    }

.version-tag {
    text-align: center;
    margin-top: 26px;
    font-size: 0.75rem;
    color: #b7b6b3;
    letter-spacing: 0.04em;
    opacity: 0;
    animation: fadeUp 0.55s ease 0.68s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-col__eyebrow, .form-col h2, .form-col p.sub, .login-scope .field, .btn-submit {
    opacity: 0;
    animation: fadeUp 0.55s ease forwards;
}

.form-col__eyebrow {
    animation-delay: 0.05s;
}

.form-col h2 {
    animation-delay: 0.10s;
}

.form-col p.sub {
    animation-delay: 0.15s;
}

.login-scope .field:nth-of-type(1) {
    animation-delay: 0.20s;
}

.login-scope .field:nth-of-type(2) {
    animation-delay: 0.26s;
}

.login-scope .field:nth-of-type(3) {
    animation-delay: 0.32s;
}

.btn-submit {
    animation-delay: 0.50s;
}

@media (max-width: 860px) {
    .stage {
        grid-template-columns: 1fr;
    }

    .panel-brand {
        padding: 32px 28px;
        min-height: 220px;
    }

    .panel-brand__mid h1 {
        font-size: 1.5rem;
    }

    .panel-brand__mid p {
        display: none;
    }

    .ecg-wrap {
        display: none;
    }

    .panel-brand__foot {
        display: none;
    }

    .panel-form {
        padding: 36px 24px 48px;
    }
}

@media (max-width: 380px) {
    .form-col h2 {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}


navbar {
    display: none;
}


@media (max-width: 480px) {

    body {
        overflow: scroll;
    }
    .panel-brand {
        display: none;
    }
}



.form-control:focus, .form-select:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgb(13 110 253 / 0%) !important;
}

/*body {
    overflow:hidden;
}*/


.cross-grid {
    position: absolute;
    inset: 0;
    opacity: .16;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .9) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(circle at 20% 15%, black, transparent 70%);
    mask-image: radial-gradient(circle at 20% 15%, black, transparent 70%);
}

.navbar {
    display: none;
    padding-top: 0px;
}
