* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 16%, rgba(183,240,0,0.13), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(114,214,212,0.18), transparent 30%),
        linear-gradient(135deg, #101b36 0%, #17294f 54%, #223d6d 100%);
    display: grid;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow: hidden;
}

.login-shell {
    width: min(1060px, calc(100vw - 48px));
    min-height: 560px;
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    overflow: hidden;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(6, 16, 38, 0.42);
}

.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
    padding: 38px;
    color: white;
    background: linear-gradient(150deg, #101b36 0%, #17294f 58%, #223d6d 100%);
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.35;
}

.brand-block,
.login-visual img {
    position: relative;
    z-index: 1;
}

.brand-kicker,
.login-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.brand-kicker {
    padding: 9px 12px;
    background: rgba(183,240,0,0.14);
    color: #eaff9d;
}

.brand-block h1 {
    max-width: 460px;
    margin: 14px 0 10px;
    font-size: 32px;
    line-height: 1.12;
}

.brand-block p {
    max-width: 440px;
    color: #c9d6ea;
    font-size: 15px;
    line-height: 1.5;
}

.login-visual img {
    width: min(100%, 430px);
    max-height: 310px;
    align-self: center;
    filter: drop-shadow(0 22px 34px rgba(5, 28, 55, 0.28));
}

.login-container {
    width: 100%;
    background: white;
    min-width: 0;
    padding: 44px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 28px;
}

.login-badge {
    margin-bottom: 18px;
    padding: 8px 11px;
    background: #f0ffd0;
    color: #5c7800;
}

.login-header h2 {
    color: #13213f;
    font-size: 28px;
    margin-bottom: 8px;
}

.login-header p {
    color: #718093;
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.login-error {
    background: #fdecea;
    border-radius: 10px;
    color: #c0392b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    padding: 12px;
    text-align: center;
}

.login-success {
    background: #eaf7ef;
    border-radius: 10px;
    color: #23764b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    padding: 12px;
    text-align: center;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2f3640;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d7deea;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: #72d6d4;
    box-shadow: 0 0 0 4px rgba(114, 214, 212, 0.18);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 92px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    min-width: 72px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: #eef3fb;
    color: #223d6d;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #13213f 0%, #223d6d 58%, #5f7d00 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    box-shadow: 0 12px 24px rgba(19, 33, 63, 0.24);
    transform: translateY(-1px);
}

.login-actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    text-align: center;
}

.login-actions .login-link,
.login-action-button {
    align-items: center;
    background: #f4f7fc;
    border: 1px solid #d7deea;
    border-radius: 12px;
    color: #223d6d;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    text-decoration: none;
    width: min(100%, 260px);
}

.login-actions .login-link:hover,
.login-action-button:hover {
    background: #eef3fb;
    border-color: #b9c7dd;
    text-decoration: none;
}

.reset-state {
    display: grid;
    gap: 16px;
    text-align: center;
}

.reset-state p {
    color: #718093;
    font-size: 14px;
    line-height: 1.5;
}

.btn-login.as-link {
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.login-help-text {
    color: #718093;
    display: block;
    font-size: 13px;
    line-height: 1.45;
    max-width: 320px;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    color: #718093;
    font-size: 13px;
}

@media (max-width: 860px) {
    body {
        align-items: flex-start;
        overflow: auto;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
    }

    .login-visual {
        padding: 34px;
    }

    .brand-block h1 {
        font-size: 30px;
    }

    .login-visual img {
        max-height: 260px;
    }

    .login-container {
        padding: 36px 28px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 14px;
    }

    .login-shell {
        border-radius: 20px;
    }

    .login-visual {
        padding: 28px 22px;
    }

    .brand-block h1 {
        font-size: 25px;
    }

    .brand-block p {
        font-size: 14px;
    }

    .login-visual img {
        max-height: 210px;
    }

    .login-container {
        padding: 30px 22px;
    }
}
