:root {
    --green: #6F7D55;
    --green-dark: #4E5D3D;
    --gold: #B98A58;
    --gold-soft: #D7B586;
    --blue: #174A6F;
    --blue-dark: #0D2D4A;
    --text: #27313C;
    --muted: #6E7883;
    --line: rgba(39, 49, 60, .12);
    --bg: #F4F7F8;
    --white: #FFFFFF;
    --danger: #9D3636;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        linear-gradient(
            115deg,
            rgba(244, 247, 248, .96) 0%,
            rgba(244, 247, 248, .91) 45%,
            rgba(255, 255, 255, .82) 100%
        ),
        url('/assets/img/backGroungIndex01.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.18fr .82fr;
}

.institution-panel {
    position: relative;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.institution-logo-card,
.secure-badge,
.institution-panel h1,
.institution-description,
.operation-grid,
.security-strip {
    position: relative;
    z-index: 2;
}

.institution-logo-card {
    width: min(520px, 100%);
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(39,49,60,.08);
    border-radius: 24px;
    padding: 22px 26px;
    box-shadow: 0 18px 46px rgba(39,49,60,.08);
    margin-bottom: 34px;
}

.institution-logo-card img {
    width: 100%;
    max-height: 130px;
    object-fit: contain;
    display: block;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(111,125,85,.12);
    border: 1px solid rgba(111,125,85,.24);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 22px;
}

.secure-dot {
    width: 9px;
    height: 9px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(111,125,85,.12);
}

.institution-panel h1 {
    max-width: 760px;
    font-size: clamp(42px, 5vw, 76px);
    line-height: .94;
    letter-spacing: -.055em;
    margin: 0 0 22px;
    color: #27313C;
}

.institution-description {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 30px;
}

.operation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    max-width: 720px;
    margin-bottom: 32px;
}

.operation-item {
    min-height: 58px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(39,49,60,.08);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 24px rgba(39,49,60,.045);
}

.operation-item span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(111,125,85,.14);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

.operation-item strong {
    font-size: 15px;
    line-height: 1.25;
}

.security-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.security-strip div {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(23,74,111,.08);
    border: 1px solid rgba(23,74,111,.12);
    color: #244760;
    font-size: 13px;
    font-weight: 800;
}

.security-strip span {
    color: var(--blue);
    font-weight: 900;
}

.access-panel {
    min-height: 100vh;
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.58);
    border-left: 1px solid rgba(39,49,60,.06);
    backdrop-filter: blur(2px);
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 26px;
    border: 1px solid rgba(39,49,60,.08);
    box-shadow: 0 30px 70px rgba(39,49,60,.13);
    padding: 42px 38px 34px;
    overflow: hidden;
}

.login-card-top-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--blue));
}

.login-brand {
    text-align: center;
    padding-bottom: 30px;
}

.droana-word {
    color: var(--green-dark);
    font-weight: 900;
    letter-spacing: .20em;
    font-size: 31px;
}

.system-name {
    margin-top: 6px;
    color: var(--blue);
    font-weight: 900;
    letter-spacing: .04em;
    font-size: 15px;
    text-transform: uppercase;
}

.login-brand p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 14px;
}

.login-title {
    margin-bottom: 18px;
}

.login-title h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -.02em;
}

.login-title p {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.alert-error {
    background: rgba(157,54,54,.10);
    border: 1px solid rgba(157,54,54,.20);
    color: var(--danger);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    align-items: center;
    height: 50px;
    border-bottom: 1px solid rgba(39,49,60,.14);
    margin-bottom: 10px;
}

.input-icon {
    width: 42px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.input-group input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    color: var(--text);
    padding: 0 8px;
}

.input-group input::placeholder {
    color: #9AA3AD;
}

.input-group:focus-within {
    border-bottom-color: var(--green);
}

.show-password {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 10px 0 18px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(79,93,61,.22);
    transition: .2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 42px rgba(79,93,61,.28);
}

.restricted-access {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(39,49,60,.10);
    text-align: center;
}

.restricted-access strong {
    display: block;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 6px;
}

.restricted-access span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #89929C;
}

@media (max-width: 1100px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .institution-panel {
        min-height: auto;
        padding: 38px 28px;
    }

    .access-panel {
        min-height: auto;
        padding: 32px 24px 48px;
        border-left: 0;
    }
}

@media (max-width: 680px) {
    .institution-panel {
        padding: 28px 20px;
    }

    .institution-logo-card {
        padding: 18px;
        border-radius: 20px;
    }

    .institution-panel h1 {
        font-size: 42px;
    }

    .operation-grid {
        grid-template-columns: 1fr;
    }

    .security-strip {
        flex-direction: column;
    }

    .login-card {
        padding: 36px 26px 30px;
    }
}