:root {
    --alina-navy: #123149;
    --alina-navy-deep: #0c263a;
    --alina-teal: #0d8f83;
    --alina-teal-dark: #08756c;
    --alina-gold: #c6a15b;
    --alina-bg: #f3f6f9;
    --alina-surface: #ffffff;
    --alina-text: #17212b;
    --alina-muted: #6c7a89;
    --alina-border: #dfe6ec;
    --alina-danger: #b42318;
    --alina-danger-bg: #fff4f2;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--alina-bg);
    color: var(--alina-text);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.alina-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(430px, 0.94fr) minmax(480px, 1.06fr);
}

.alina-brand-panel {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 58px 36px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 10%, rgba(198, 161, 91, .22), transparent 27%),
        radial-gradient(circle at 10% 88%, rgba(13, 143, 131, .28), transparent 31%),
        linear-gradient(145deg, var(--alina-navy) 0%, var(--alina-navy-deep) 100%);
}

.alina-brand-panel::before,
.alina-brand-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    pointer-events: none;
}

.alina-brand-panel::before {
    width: 430px;
    height: 430px;
    right: -245px;
    top: 22%;
}

.alina-brand-panel::after {
    width: 310px;
    height: 310px;
    right: -160px;
    top: calc(22% + 60px);
}

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

.institutional-logos {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-dgeti {
    width: 210px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
    opacity: .97;
}

.logo-separator {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, .28);
}

.logo-cbtis {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: rgba(255, 255, 255, .95);
    border-radius: 13px;
    padding: 4px;
}

.brand-copy {
    margin-top: clamp(72px, 13vh, 138px);
    max-width: 610px;
}

.brand-kicker {
    display: inline-block;
    margin-bottom: 2px;
    color: #bcd8d4;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .28em;
}

.brand-copy h1 {
    margin: 0;
    font-size: clamp(4.8rem, 8.4vw, 8rem);
    line-height: .95;
    letter-spacing: -.055em;
    font-weight: 800;
}

.brand-subtitle {
    margin: 17px 0 0;
    font-size: clamp(1.25rem, 2.1vw, 1.85rem);
    font-weight: 650;
    letter-spacing: -.02em;
    color: #edf7f6;
}

.brand-description {
    margin: 19px 0 0;
    max-width: 540px;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .72);
}

.brand-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 39px;
    padding: 8px 13px 8px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .82);
    font-size: .78rem;
    font-weight: 650;
}

.feature-icon {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(13, 143, 131, .25);
}

.feature-icon svg {
    width: 14px;
    height: 14px;
    fill: #bfe6e2;
}

.brand-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .54);
    font-size: .75rem;
    font-weight: 600;
}

.login-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 7vw;
    background:
        radial-gradient(circle at 75% 15%, rgba(13, 143, 131, .08), transparent 23%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
}

.login-wrap {
    width: min(100%, 460px);
}

.mobile-brand {
    display: none;
}

.login-card {
    width: 100%;
    padding: 39px 40px 34px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(18, 49, 73, .075);
    border-radius: 24px;
    box-shadow: 0 24px 65px rgba(18, 49, 73, .11);
}

.login-heading {
    margin-bottom: 29px;
}

.access-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    margin-bottom: 17px;
    border-radius: 999px;
    background: #e9f6f4;
    color: var(--alina-teal-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 0;
    color: var(--alina-navy);
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.login-heading p {
    margin: 9px 0 0;
    color: var(--alina-muted);
    font-size: .93rem;
    line-height: 1.55;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 19px;
    padding: 12px 13px;
    border: 1px solid #f5c5bd;
    border-radius: 11px;
    background: var(--alina-danger-bg);
    color: var(--alina-danger);
    font-size: .82rem;
    font-weight: 620;
    line-height: 1.45;
}

.alert-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--alina-danger);
    color: #fff;
    font-size: .71rem;
    font-weight: 900;
}

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

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: #344454;
    font-size: .79rem;
    font-weight: 750;
}

.input-shell {
    min-height: 51px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--alina-border);
    border-radius: 12px;
    background: #fbfcfd;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-shell:focus-within {
    border-color: rgba(13, 143, 131, .65);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 143, 131, .09);
}

.input-icon {
    flex: 0 0 auto;
    width: 46px;
    display: grid;
    place-items: center;
    color: #8795a4;
}

.input-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.input-shell input {
    min-width: 0;
    flex: 1;
    height: 49px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--alina-text);
    font-size: .9rem;
    font-weight: 550;
}

.input-shell input::placeholder {
    color: #9aa6b2;
    font-weight: 450;
}

.password-toggle {
    flex: 0 0 auto;
    width: 45px;
    height: 49px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7e8c9a;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--alina-teal-dark);
    outline: none;
}

.password-toggle svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.login-button {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--alina-teal) 0%, var(--alina-teal-dark) 100%);
    color: #fff;
    box-shadow: 0 11px 25px rgba(13, 143, 131, .22);
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.025);
    box-shadow: 0 14px 30px rgba(13, 143, 131, .26);
}

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

.login-button:focus-visible {
    outline: 3px solid rgba(13, 143, 131, .22);
    outline-offset: 3px;
}

.login-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.login-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 25px;
    padding-top: 21px;
    border-top: 1px solid #edf0f3;
    color: #788696;
    font-size: .74rem;
    line-height: 1.5;
}

.login-note svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    fill: #7f918f;
}

.login-copyright {
    margin: 18px 0 0;
    color: #8b98a5;
    text-align: center;
    font-size: .73rem;
    font-weight: 600;
}

@media (max-width: 980px) {
    .alina-login-shell {
        grid-template-columns: 1fr;
    }

    .alina-brand-panel {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 38px 22px;
    }

    .mobile-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 0 24px;
        color: var(--alina-navy);
    }

    .mobile-brand-kicker {
        font-size: .62rem;
        font-weight: 850;
        letter-spacing: .24em;
        color: var(--alina-teal-dark);
    }

    .mobile-brand strong {
        margin-top: 2px;
        font-size: 2.25rem;
        line-height: 1;
        letter-spacing: -.05em;
    }

    .mobile-brand small {
        margin-top: 5px;
        color: #71808e;
        font-size: .74rem;
        font-weight: 650;
    }
}

@media (max-width: 520px) {
    .login-panel {
        align-items: start;
        padding: 28px 16px;
    }

    .login-card {
        padding: 29px 23px 25px;
        border-radius: 19px;
    }

    .login-heading h2 {
        font-size: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
