* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #17202a;
    background: #f4f7f9;
}

a {
    color: #126b7f;
}

.auth-page,
.dashboard-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.auth-shell {
    width: min(100%, 920px);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    background: #ffffff;
    border: 1px solid #dce5e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(23, 32, 42, 0.08);
}

.auth-intro {
    padding: 42px;
    background: #17313a;
    color: #ffffff;
}

.auth-intro h1,
.auth-card h1,
.dashboard-card h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.15;
}

.auth-intro p,
.auth-card p,
.dashboard-card p {
    margin: 0;
    line-height: 1.55;
}

.auth-card,
.dashboard-card {
    padding: 42px;
    background: #ffffff;
}

.form-grid {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
    font-size: 14px;
}

input {
    width: 100%;
    border: 1px solid #c9d6da;
    border-radius: 6px;
    padding: 12px 13px;
    font: inherit;
    color: #17202a;
    background: #ffffff;
}

input:focus {
    outline: 3px solid rgba(24, 128, 152, 0.18);
    border-color: #188098;
}

input.is-invalid {
    border-color: #dc2626;
}

input.is-invalid:focus {
    outline-color: rgba(220, 38, 38, 0.18);
    border-color: #dc2626;
}

input.is-valid {
    border-color: #15803d;
}

input.is-valid:focus {
    outline-color: rgba(21, 128, 61, 0.18);
    border-color: #15803d;
}

.password-strength {
    display: grid;
    gap: 7px;
    margin-top: -6px;
}

.password-strength-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce5e8;
}

.password-strength-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #b91c1c;
    transition: width 160ms ease, background 160ms ease;
}

.password-strength[data-strength="1"] .password-strength-bar {
    width: 25%;
    background: #dc2626;
}

.password-strength[data-strength="2"] .password-strength-bar {
    width: 50%;
    background: #d97706;
}

.password-strength[data-strength="3"] .password-strength-bar {
    width: 75%;
    background: #188098;
}

.password-strength[data-strength="4"] .password-strength-bar {
    width: 100%;
    background: #15803d;
}

.password-strength-text {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #52636a;
}

.field-message {
    min-height: 18px;
    margin: -8px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #52636a;
}

.field-message.is-invalid {
    color: #dc2626;
}

.field-message.is-valid {
    color: #15803d;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 45px;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    font: inherit;
    font-weight: 700;
    color: #ffffff;
    background: #188098;
    cursor: pointer;
    text-decoration: none;
}

.button:hover {
    background: #126b7f;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button:disabled:hover {
    background: #188098;
}

.auth-switch {
    margin-top: 20px;
    font-size: 14px;
}

.alert {
    margin-top: 20px;
    border-radius: 6px;
    padding: 12px 14px;
    line-height: 1.45;
}

.alert-error {
    color: #7a1d1d;
    background: #fde8e8;
    border: 1px solid #f7b8b8;
}

.alert-success {
    color: #14532d;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.error-list {
    margin: 0;
    padding-left: 18px;
}

.dashboard-card {
    width: min(100%, 720px);
    border: 1px solid #dce5e8;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(23, 32, 42, 0.08);
}

.dashboard-actions {
    margin-top: 26px;
}

@media (max-width: 760px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-intro,
    .auth-card,
    .dashboard-card {
        padding: 28px;
    }

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