:root {
    --login-ink: #18202b;
    --login-muted: #657184;
    --login-line: #d9e1ea;
    --login-panel: #ffffff;
    --login-bg: #f5f7fb;
    --login-teal: #0f8b8d;
    --login-teal-dark: #0b6668;
    --login-coral: #d96c4f;
    --login-navy: #182842;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body.login-page {
    min-height: 100vh;
    margin: 0;
    color: var(--login-ink);
    background: var(--login-bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    min-height: 100vh;
}

.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 42px;
    overflow: hidden;
    color: #fff;
    background: url('../images/bg-2.jpeg') center / cover no-repeat;
}

.login-visual__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(140deg, rgba(10, 22, 38, 0.92) 0%, rgba(15, 139, 141, 0.68) 56%, rgba(217, 108, 79, 0.44) 100%),
        linear-gradient(0deg, rgba(6, 12, 22, 0.72), rgba(6, 12, 22, 0.12));
}

.login-visual__top,
.login-visual__content {
    position: relative;
    z-index: 1;
}

.login-visual__top {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.login-brand__logo {
    width: 126px;
    max-width: 40vw;
    height: auto;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.24));
}

.login-visual__content {
    max-width: 640px;
    margin-bottom: 18px;
}

.login-kicker,
.login-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.login-kicker {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.94);
}

.login-visual h1 {
    max-width: 620px;
    margin: 18px 0 14px;
    color: #fff;
    font-size: 46px;
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: 0;
}

.login-visual p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.7;
}

.login-visual__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 520px;
    margin-top: 28px;
}

.login-visual__meta div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.login-visual__meta i {
    flex: 0 0 auto;
    font-size: 24px;
    color: #fff;
}

.login-visual__meta span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 800;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98)),
        #fff;
}

.login-panel__inner {
    width: min(100%, 430px);
    max-width: 100%;
    min-width: 0;
}

.login-panel__header {
    min-width: 0;
    margin-bottom: 26px;
}

.login-panel__logo {
    width: 138px;
    height: auto;
    margin-bottom: 20px;
}

.login-panel__eyebrow {
    margin-bottom: 14px;
    background: rgba(15, 139, 141, 0.1);
    color: var(--login-teal-dark);
}

.login-panel h2 {
    margin: 0 0 9px;
    color: var(--login-ink);
    font-size: 31px;
    font-weight: 850;
    line-height: 1.16;
    letter-spacing: 0;
}

.login-panel p {
    max-width: 100%;
    margin: 0;
    color: var(--login-muted);
    font-size: 15px;
    line-height: 1.6;
}

.login-alert {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 108, 79, 0.3);
    border-radius: 8px;
    background: rgba(217, 108, 79, 0.1);
    color: #9b3f2d;
    font-size: 13px;
    line-height: 1.5;
}

.login-alert i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 18px;
}

.login-alert span {
    display: block;
}

.login-form {
    display: grid;
    gap: 17px;
}

.login-field label,
.login-label-row label {
    display: block;
    margin: 0 0 8px;
    color: #283343;
    font-size: 14px;
    font-weight: 800;
}

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.login-label-row a {
    margin-bottom: 8px;
    color: var(--login-teal-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.login-label-row a:hover,
.login-label-row a:focus {
    color: var(--login-coral);
    text-decoration: underline;
}

.login-input {
    display: flex;
    align-items: center;
    min-height: 54px;
    border: 1px solid var(--login-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(24, 40, 66, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-input:focus-within {
    border-color: rgba(15, 139, 141, 0.66);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 139, 141, 0.13);
}

.login-input > i {
    flex: 0 0 auto;
    width: 48px;
    color: #7b8797;
    font-size: 21px;
    text-align: center;
}

.login-input input {
    width: 100%;
    min-width: 0;
    height: 52px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--login-ink);
    font-size: 15px;
    font-weight: 600;
}

.login-input input::placeholder {
    color: #9ca7b5;
    font-weight: 500;
}

.toggle-password {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 5px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7b8797;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.toggle-password:hover,
.toggle-password:focus {
    background: rgba(15, 139, 141, 0.1);
    color: var(--login-teal);
    outline: none;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    margin-top: 2px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--login-teal), var(--login-navy));
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    box-shadow: 0 16px 34px rgba(15, 139, 141, 0.24);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-submit:hover,
.login-submit:focus {
    color: #fff;
    filter: saturate(1.05);
    box-shadow: 0 18px 38px rgba(24, 40, 66, 0.24);
    transform: translateY(-1px);
    outline: none;
}

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

.login-submit i {
    font-size: 18px;
}

.login-support {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 139, 141, 0.14);
    border-radius: 8px;
    background: rgba(15, 139, 141, 0.06);
    color: #516071;
    font-size: 13px;
    font-weight: 650;
}

.login-support i {
    color: var(--login-teal);
    font-size: 18px;
}

.login-footer {
    margin-top: 28px !important;
    color: #7a8494 !important;
    font-size: 13px !important;
    text-align: center;
}

.login-result {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid rgba(15, 139, 141, 0.2);
    border-radius: 8px;
    background: rgba(15, 139, 141, 0.08);
    color: #0f4f4f;
}

.login-result__label {
    color: #315b5f;
    font-size: 13px;
    font-weight: 800;
}

.login-result strong {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    color: var(--login-ink);
    font-size: 22px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0;
}

.login-result small {
    color: #557076;
    font-size: 12px;
    line-height: 1.5;
}

.login-back {
    margin-top: 18px !important;
    text-align: center;
}

.login-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--login-teal-dark);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.login-back a:hover {
    color: var(--login-coral);
    text-decoration: underline;
}

@media (max-width: 1199.98px) {
    .login-shell {
        grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1fr);
    }

    .login-visual {
        padding: 34px;
    }

    .login-visual h1 {
        font-size: 39px;
    }
}

@media (max-width: 991.98px) {
    body.login-page {
        background:
            linear-gradient(140deg, rgba(10, 22, 38, 0.86), rgba(15, 139, 141, 0.58)),
            url('../images/bg-2.jpeg') center / cover no-repeat fixed;
    }

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

    .login-visual {
        display: none;
    }

    .login-panel {
        width: min(100%, 520px);
        min-height: auto;
        padding: 28px;
        border-radius: 8px;
        box-shadow: 0 24px 70px rgba(5, 14, 28, 0.3);
    }
}

@media (max-width: 575.98px) {
    .login-shell {
        padding: 14px;
        overflow-x: hidden;
    }

    .login-panel {
        flex: 0 1 auto;
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
        padding: 22px;
    }

    .login-panel__inner {
        width: 100%;
        max-width: 100%;
    }

    .login-panel__logo {
        width: 112px;
        margin-bottom: 18px;
    }

    .login-panel h2 {
        font-size: 26px;
    }

    .login-panel p,
    .login-input input,
    .login-submit {
        font-size: 14px;
    }

    .login-panel__header p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .login-panel__eyebrow {
        max-width: 100%;
        white-space: normal;
    }

    .login-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }
}
