:root {
    --ink: #172033;
    --muted: #667085;
    --line: #d9e1ec;
    --page: #eef3f8;
    --panel: #ffffff;
    --nav: #10243e;
    --brand: #0f5d9e;
    --brand-dark: #0a4272;
    --danger: #b42318;
    --danger-bg: #fff1f0;
    --success: #147a50;
    --success-bg: #eaf7ef;
    --shadow: 0 22px 48px rgba(16, 36, 62, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(16, 36, 62, 0.08), rgba(15, 93, 158, 0.08)),
        var(--page);
    font-family: Arial, Helvetica, sans-serif;
}

button,
input {
    font: inherit;
}

.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    width: min(920px, 100%);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.brand-panel {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 18px;
    min-height: 480px;
    padding: 34px;
    color: #fff;
    text-align: center;
    background: linear-gradient(180deg, var(--nav), #0b182a);
}

.brand-logo {
    width: min(250px, 78%);
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.25));
}

.brand-panel p {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-panel strong {
    display: block;
    font-size: 20px;
}

.login-form {
    display: grid;
    align-content: center;
    padding: 42px;
}

.form-header {
    margin-bottom: 24px;
}

.form-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.15;
}

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

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.field input,
.password-control input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

.field input:focus,
.password-control input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 93, 158, 0.14);
}

.password-control {
    position: relative;
}

.password-control input {
    padding-right: 56px;
}

.password-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 44px;
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: #e8f2fc;
    color: var(--brand-dark);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.password-toggle:hover,
.password-toggle.is-visible {
    background: var(--brand);
    color: #fff;
}

.login-button {
    height: 44px;
    border: 1px solid var(--brand);
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.login-button:hover {
    background: var(--brand-dark);
}

.login-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.login-message {
    display: none;
    margin-bottom: 16px;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
}

.login-message.is-error {
    display: block;
    color: var(--danger);
    background: var(--danger-bg);
}

.login-message.is-success {
    display: block;
    color: var(--success);
    background: var(--success-bg);
}

@media (max-width: 760px) {
    .login-page {
        padding: 14px;
    }

    .login-card {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: 220px;
        padding: 24px;
    }

    .brand-logo {
        width: 170px;
    }

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