:root {
    --tiox-blue-deep: #09265F;
    --tiox-blue: #123D86;
    --tiox-ink: #202936;
    --tiox-muted: #667085;
    --tiox-bg: #F3F7FC;
    --tiox-card: #FFFFFF;
    --tiox-border: #D8E1EE;
    --tiox-accent: #44B5D7;
    --tiox-soft: #EEF5FC;
}

* {
    box-sizing: border-box;
}

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

body.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--tiox-ink);
    background:
        radial-gradient(circle at 10% 8%, rgba(68, 181, 215, 0.13), transparent 29%),
        radial-gradient(circle at 88% 18%, rgba(18, 61, 134, 0.10), transparent 28%),
        linear-gradient(135deg, #F8FBFF 0%, var(--tiox-bg) 47%, #ECF3FA 100%);
}

#form1 {
    min-height: 100vh;
}

.login-version {
    position: fixed;
    right: 18px;
    bottom: 12px;
    z-index: 9999;
    padding: 5px 8px;
    border: 1px solid rgba(9, 38, 95, 0.12);
    border-radius: 8px;
    color: rgba(9, 38, 95, 0.86);
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(9, 38, 95, 0.08);
    pointer-events: none;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.login-card {
    width: min(100%, 980px);
    min-height: 560px;
    display: grid;
    grid-template-columns: 52% 48%;
    overflow: hidden;
    border: 1px solid rgba(216, 225, 238, 0.75);
    border-radius: 26px;
    background: var(--tiox-card);
    box-shadow: 0 28px 90px rgba(9, 38, 95, 0.14);
    animation: cardEntrance 650ms ease-out both;
}

.brand-panel,
.access-panel {
    position: relative;
    min-width: 0;
}

.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 58px 52px 40px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(236, 244, 252, 0.78)),
        radial-gradient(circle at 14% 20%, rgba(68, 181, 215, 0.16), transparent 34%),
        radial-gradient(circle at 88% 72%, rgba(18, 61, 134, 0.12), transparent 36%);
}

.brand-panel::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    pointer-events: none;
}

.brand-content,
.brand-footer {
    position: relative;
    z-index: 2;
}

.brand-logo {
    width: min(330px, 82%);
    height: auto;
    display: block;
    margin-bottom: 26px;
    filter: drop-shadow(0 18px 24px rgba(9, 38, 95, 0.10));
}

.brand-kicker {
    max-width: 320px;
    margin: 0;
    color: var(--tiox-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.8;
}

.brand-title {
    max-width: 610px;
    margin: 0;
    color: var(--tiox-ink);
    font-size: clamp(2.35rem, 4vw, 4.15rem);
    line-height: 1.03;
    font-weight: 750;
    letter-spacing: 0;
}

.brand-subtitle {
    max-width: 500px;
    margin: 24px 0 0;
    color: var(--tiox-muted);
    font-size: 1.22rem;
    line-height: 1.65;
}

.brand-footer {
    margin: 36px 0 0;
    color: rgba(32, 41, 54, 0.62);
    font-size: 0.9rem;
    font-weight: 600;
}

.brand-orb,
.oxygen-ring {
    position: absolute;
    pointer-events: none;
}

.brand-orb {
    border-radius: 999px;
    filter: blur(6px);
}

.brand-orb-one {
    width: 250px;
    height: 250px;
    left: -96px;
    bottom: 76px;
    background: radial-gradient(circle, rgba(68, 181, 215, 0.17), rgba(68, 181, 215, 0));
}

.brand-orb-two {
    width: 330px;
    height: 330px;
    right: -136px;
    top: -92px;
    background: radial-gradient(circle, rgba(18, 61, 134, 0.12), rgba(18, 61, 134, 0));
}

.oxygen-ring {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(68, 181, 215, 0.28);
}

.oxygen-ring::after {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: inherit;
    border: 1px solid rgba(18, 61, 134, 0.12);
}

.oxygen-ring-one {
    right: 54px;
    bottom: 58px;
}

.oxygen-ring-two {
    width: 112px;
    height: 112px;
    right: 194px;
    bottom: 178px;
    border-color: rgba(68, 181, 215, 0.18);
}

.access-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px 48px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        radial-gradient(circle at 50% 8%, rgba(68, 181, 215, 0.08), transparent 32%);
    border-left: 1px solid rgba(216, 225, 238, 0.64);
}

.access-content {
    width: min(100%, 360px);
}

.access-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 14px;
    color: var(--tiox-blue-deep);
    background: linear-gradient(145deg, #E9F5FB, #F8FBFF);
    box-shadow: inset 0 0 0 1px rgba(216, 225, 238, 0.9);
}

.access-header h2 {
    margin: 0;
    color: var(--tiox-ink);
    font-size: 1.9rem;
    line-height: 1.12;
    font-weight: 750;
}

.access-header p {
    margin: 10px 0 0;
    color: var(--tiox-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.login-fields {
    margin-top: 30px;
}

.field-group {
    margin-bottom: 18px;
}

.form-label {
    margin-bottom: 9px;
    color: var(--tiox-ink);
    font-size: 0.94rem;
    font-weight: 700;
}

.input-shell {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 2;
    color: #7B8AA0;
    transform: translateY(-50%);
    transition: color 180ms ease;
}

.login-input {
    min-height: 52px;
    padding: 0.82rem 1rem 0.82rem 3.05rem;
    border: 1px solid var(--tiox-border);
    border-radius: 16px;
    color: var(--tiox-ink);
    background-color: #FBFDFF;
    font-size: 1rem;
    box-shadow: 0 10px 24px rgba(9, 38, 95, 0.04);
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.password-shell .login-input {
    padding-right: 3.2rem;
}

.login-input::placeholder {
    color: #98A4B3;
}

.login-input:focus {
    border-color: rgba(68, 181, 215, 0.92);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(68, 181, 215, 0.15), 0 14px 26px rgba(9, 38, 95, 0.07);
}

.input-shell:focus-within .input-icon {
    color: var(--tiox-blue);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    color: #6C7A8E;
    background: transparent;
    transform: translateY(-50%);
    transition: color 180ms ease, background-color 180ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--tiox-blue-deep);
    background: #EEF5FC;
}

.login-button {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    border: 0;
    border-radius: 16px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--tiox-blue-deep), var(--tiox-blue));
    font-weight: 750;
    box-shadow: 0 18px 32px rgba(9, 38, 95, 0.24);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-button:hover,
.login-button:focus-visible {
    color: #FFFFFF;
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 22px 38px rgba(9, 38, 95, 0.28);
}

.login-button:active {
    transform: translateY(0);
}

.login-message {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(185, 28, 28, 0.18);
    border-radius: 14px;
    color: #9F1239;
    background: #FFF1F2;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.4;
}

.access-footer {
    margin: 24px 0 0;
    color: #7A8798;
    font-size: 0.88rem;
    text-align: center;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

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

@media (max-width: 1040px) {
    .login-shell {
        padding: 18px;
    }

    .login-card {
        grid-template-columns: 50% 50%;
    }

    .brand-panel {
        padding: 46px 38px 34px;
    }

    .brand-logo {
        width: min(290px, 86%);
    }

    .access-panel {
        padding: 42px 34px;
    }
}

@media (max-width: 767.98px) {
    body.login-page,
    #form1,
    .login-shell {
        min-height: 100%;
    }

    .login-shell {
        align-items: flex-start;
        padding: 12px;
    }

    .login-card {
        min-height: 0;
        display: flex;
        flex-direction: column;
        border-radius: 24px;
    }

    .access-panel {
        order: 1;
        padding: 28px 18px 22px;
        border-left: 0;
    }

    .brand-panel {
        order: 2;
        min-height: 142px;
        padding: 20px 20px 18px;
    }

    .brand-panel::before,
    .oxygen-ring-two,
    .brand-title,
    .brand-subtitle,
    .brand-footer {
        display: none;
    }

    .brand-logo {
        width: min(205px, 76%);
        margin-bottom: 10px;
    }

    .brand-kicker {
        max-width: 260px;
        font-size: 0.68rem;
        letter-spacing: 0.12em;
        line-height: 1.55;
    }

    .oxygen-ring-one {
        width: 128px;
        height: 128px;
        right: -40px;
        bottom: -8px;
    }

    .brand-orb-one {
        width: 170px;
        height: 170px;
        left: -78px;
        bottom: -86px;
    }

    .brand-orb-two {
        width: 200px;
        height: 200px;
        right: -106px;
        top: -92px;
    }

    .access-mark {
        width: 44px;
        height: 44px;
        margin-bottom: 18px;
        border-radius: 14px;
    }

    .access-header h2 {
        font-size: 1.65rem;
    }

    .login-fields {
        margin-top: 24px;
    }

    .field-group {
        margin-bottom: 16px;
    }

    .login-input,
    .login-button {
        min-height: 54px;
        border-radius: 15px;
    }
    .login-version {
        font-size: 0.65rem;
        right: 10px;
        bottom: 8px;
        padding: 3px 6px;
        border-radius: 6px;
    }
}

.login-logo-animated {
    animation: logoFadeInVerySlow 6s cubic-bezier(0.25, 1, 0.5, 1) both;
    animation-delay: 0.75s;
}

@keyframes logoFadeInVerySlow {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
