:root {
    --login-navy: #061746;
    --login-text: #07183d;
    --login-muted: #596982;
    --login-blue: #0d63ff;
    --login-blue-dark: #0046ea;
    --login-border: #cfd9e8;
    --login-shadow: 0 22px 58px rgba(6, 25, 70, .15);
}

* {
    box-sizing: border-box;
}

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

body.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--login-text);
    background:
        radial-gradient(circle at 92% 15%, rgba(13, 99, 255, .12), transparent 24%),
        linear-gradient(115deg, #eef6ff 0%, #ffffff 56%, #f5f9ff 100%);
    overflow: hidden;
}

body.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .34;
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(13, 99, 255, .16) 25%, transparent 26%),
        linear-gradient(150deg, transparent 24%, rgba(13, 99, 255, .12) 25%, transparent 26%);
    background-size: 145px 145px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 32%, #000 100%);
}

.login-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(500px, 53%) minmax(430px, 47%);
    min-height: 100vh;
    height: 100vh;
}

.login-hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    padding: clamp(28px, 4vh, 54px) clamp(38px, 5vw, 82px);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(238, 247, 255, .98) 0%, rgba(228, 241, 255, .88) 30%, rgba(0, 63, 160, .22) 70%, rgba(0, 73, 190, .55) 100%),
        url("../img/login-lab.svg") center bottom / cover no-repeat;
}

.login-hero::after {
    content: "";
    position: absolute;
    top: -110px;
    right: -58px;
    width: 300px;
    height: calc(100% + 220px);
    z-index: -1;
    background: linear-gradient(180deg, #0068ff 0%, #0054de 48%, #0072ff 100%);
    transform: skewX(-20deg);
    box-shadow:
        -22px 0 0 rgba(71, 184, 255, .72),
        -46px 0 0 rgba(255, 255, 255, .12);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-logo {
    width: clamp(76px, 7.5vw, 96px);
    height: clamp(76px, 7.5vw, 96px);
    flex: 0 0 auto;
    object-fit: contain;
}

.hero-title h1 {
    margin: 0;
    font-size: clamp(48px, 4.8vw, 66px);
    font-weight: 850;
    letter-spacing: -2.4px;
    color: #071547;
    line-height: .96;
}

.hero-title h2 {
    margin: 8px 0 0;
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;
    color: #40506a;
    line-height: 1;
}

.hero-line {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 220px;
    margin: 18px 0 22px 116px;
}

.hero-line span:first-child,
.hero-line span:last-child {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--login-blue) 0%, #60a7ff 100%);
}

.hero-line span:first-child {
    flex: 1;
}

.hero-line span:last-child {
    width: 104px;
    opacity: .42;
}

.hero-line i {
    width: 10px;
    height: 10px;
    display: block;
    border-radius: 999px;
    background: var(--login-blue);
}

.hero-subtitle {
    max-width: 560px;
    margin: 0;
    text-align: center;
    color: #07183d;
    font-size: clamp(18px, 1.65vw, 23px);
    line-height: 1.36;
    font-weight: 500;
}

.hero-badges {
    position: absolute;
    right: clamp(38px, 6vw, 92px);
    top: 30%;
    width: 270px;
    height: 270px;
}

.hex-icon {
    position: absolute;
    width: 92px;
    height: 82px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 38px;
    background: rgba(10, 91, 216, .42);
    border: 2px solid rgba(255, 255, 255, .52);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    backdrop-filter: blur(5px);
    box-shadow: 0 18px 34px rgba(3, 43, 101, .16);
}

.hex-icon:nth-child(1) {
    left: 0;
    top: 62px;
}

.hex-icon:nth-child(2) {
    right: 28px;
    top: 0;
}

.hex-icon:nth-child(3) {
    right: 48px;
    bottom: 38px;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    height: 100vh;
    padding: 20px clamp(28px, 4.5vw, 58px) 16px;
}

.login-panel-inner {
    width: min(100%, 560px);
}

.login-card {
    width: 100%;
    min-height: auto;
    padding: clamp(26px, 3vh, 34px) clamp(30px, 3.6vw, 42px) clamp(24px, 3vh, 30px);
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--login-shadow);
    backdrop-filter: blur(22px);
}

.login-card-header {
    text-align: center;
}

.login-card-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 10px;
    color: var(--login-blue);
    font-size: 60px;
}

.login-card-icon .badge-check {
    position: absolute;
    right: -1px;
    bottom: 3px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    font-size: 27px;
    color: var(--login-blue-dark);
}

.login-card h3 {
    margin: 0;
    font-size: clamp(34px, 3vw, 42px);
    font-weight: 850;
    letter-spacing: -1.2px;
    color: #071547;
    line-height: 1;
}

.login-card-header p {
    margin: 6px 0 20px;
    color: #40506a;
    font-size: 18px;
    line-height: 1.25;
}

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

.form-field {
    position: relative;
}

.form-field .field-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--login-blue);
    font-size: 22px;
    pointer-events: none;
}

.login-form .form-control {
    height: 58px;
    padding: 0 56px 0 62px;
    border: 1px solid var(--login-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .9);
    color: var(--login-text);
    font-size: 17px;
    box-shadow: none;
}

.login-form .form-control::placeholder {
    color: #63708a;
}

.login-form .form-control:focus {
    border-color: var(--login-blue);
    box-shadow: 0 0 0 .25rem rgba(13, 99, 255, .12);
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 3;
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    color: #36435b;
    background: transparent;
    transform: translateY(-50%);
    font-size: 22px;
}

.toggle-password:hover,
.toggle-password:focus {
    color: var(--login-blue);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 0;
}

.login-options .form-check {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: auto;
    margin: 0;
    padding: 0;
}

.login-options .form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    border-color: var(--login-blue);
    border-radius: 5px;
    cursor: pointer;
}

.login-options .form-check-input:checked {
    background-color: var(--login-blue);
    border-color: var(--login-blue);
}

.login-options .form-check-label {
    color: #14203e;
    font-size: 15px;
    cursor: pointer;
}

.forgot-link {
    color: var(--login-blue-dark);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.forgot-link:hover {
    color: #0036b8;
    text-decoration: underline;
}

.login-submit {
    height: 58px;
    margin-top: 2px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #0b73ff 0%, #0048ee 54%, #0041d9 100%);
    box-shadow: 0 14px 24px rgba(0, 86, 238, .24);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.login-submit i {
    margin-right: 12px;
    font-size: 23px;
    vertical-align: -1px;
}

.login-submit:hover,
.login-submit:focus {
    background: linear-gradient(135deg, #0068fb 0%, #003fe0 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(0, 86, 238, .3);
}

.login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: -1px 0;
    color: #273650;
}

.login-divider::before,
.login-divider::after {
    content: "";
    display: block;
    height: 1px;
    background: #d8e0ec;
}

.login-divider span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #d8e0ec;
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
}

.lab-access {
    height: 48px;
    border: 2px solid var(--login-blue);
    border-radius: 9px;
    color: var(--login-blue-dark);
    background: #fff;
    font-size: 16px;
    font-weight: 800;
}

.lab-access i {
    margin-right: 9px;
}

.lab-access:hover,
.lab-access:focus {
    color: #fff;
    background: var(--login-blue);
}

.security-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    color: #65738b;
    font-size: 16px;
    font-weight: 500;
}

.security-line i {
    color: #65738b;
}

.login-footer {
    margin: 12px 0 0;
    text-align: center;
    color: #26364e;
    font-size: 13px;
}

.modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 65px rgba(6, 25, 70, .2);
}

.modal-header,
.modal-footer {
    border-color: #e6edf7;
}

@media (min-width: 1200px) and (max-height: 780px) {
    .login-hero {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .hero-logo {
        width: 76px;
        height: 76px;
    }

    .hero-title h1 {
        font-size: 50px;
    }

    .hero-title h2 {
        font-size: 32px;
    }

    .hero-line {
        margin-top: 14px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-badges {
        transform: scale(.88);
        transform-origin: right top;
    }

    .login-panel {
        padding-top: 14px;
        padding-bottom: 12px;
    }

    .login-panel-inner {
        width: min(100%, 520px);
    }

    .login-card {
        padding-top: 24px;
        padding-bottom: 22px;
    }

    .login-card-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 8px;
        font-size: 52px;
    }

    .login-card-icon .badge-check {
        width: 30px;
        height: 30px;
        font-size: 24px;
    }

    .login-card h3 {
        font-size: 36px;
    }

    .login-card-header p {
        margin-bottom: 16px;
        font-size: 16px;
    }

    .login-form {
        gap: 11px;
    }

    .login-form .form-control {
        height: 52px;
        font-size: 16px;
    }

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

    .login-divider span {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .lab-access {
        height: 44px;
        font-size: 15px;
    }

    .security-line {
        margin-top: 14px;
        font-size: 14px;
    }

    .login-footer {
        margin-top: 8px;
        font-size: 12px;
    }
}

@media (max-width: 1199.98px) {
    body.login-page {
        overflow-y: auto;
    }

    .login-layout {
        display: block;
        height: auto;
        min-height: 100vh;
    }

    .login-hero {
        min-height: auto;
        padding: 38px 34px 86px;
        border-radius: 0 0 38px 38px;
    }

    .login-hero::after {
        right: -160px;
    }

    .hero-brand {
        justify-content: center;
        text-align: left;
    }

    .hero-logo {
        width: 88px;
        height: 88px;
    }

    .hero-line {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        margin: 0 auto;
        max-width: 720px;
    }

    .hero-badges {
        display: none;
    }

    .login-panel {
        min-height: auto;
        height: auto;
        padding-top: 36px;
    }

    .login-card {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .login-hero {
        padding: 28px 20px 58px;
    }

    .hero-brand {
        align-items: flex-start;
        gap: 15px;
    }

    .hero-logo {
        width: 62px;
        height: 62px;
    }

    .hero-title h1 {
        font-size: 40px;
        letter-spacing: -1.6px;
    }

    .hero-title h2 {
        font-size: 28px;
    }

    .hero-line {
        width: 210px;
        margin-top: 18px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .login-panel {
        padding: 22px 14px 22px;
    }

    .login-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .login-card-icon {
        width: 78px;
        height: 78px;
        margin-bottom: 14px;
        font-size: 56px;
    }

    .login-card-icon .badge-check {
        width: 34px;
        height: 34px;
        font-size: 27px;
    }

    .login-card h3 {
        font-size: 34px;
    }

    .login-card-header p {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .login-form {
        gap: 17px;
    }

    .login-form .form-control {
        height: 62px;
        padding-left: 58px;
        padding-right: 56px;
        font-size: 17px;
    }

    .form-field .field-icon {
        left: 19px;
        font-size: 23px;
    }

    .toggle-password {
        right: 10px;
        font-size: 22px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .login-options .form-check-label,
    .forgot-link {
        font-size: 16px;
    }

    .login-submit {
        height: 64px;
        font-size: 20px;
    }

    .lab-access {
        height: auto;
        min-height: 58px;
        padding: 10px 12px;
        font-size: 17px;
    }

    .security-line {
        flex-wrap: wrap;
        font-size: 16px;
        gap: 6px;
    }

    .login-footer {
        font-size: 13px;
    }
}
