:root {
    color-scheme: light;
    --primary: #0176d3;
    --primary-soft: #eaf5fe;
    --primary-ink: #014486;
    --primary-active: #032d60;
    --text: #495057;
    --muted: #74788d;
    --heading: #343a40;
    --border: #ced4da;
    --danger: #f46a6a;
    --danger-soft: #fff1f1;
    --panel: #ffffff;
    --page: #f8f8fb;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
}

.auth-visual {
    position: relative;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    background-image: url("/images/bg-auth-overlay.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.08), rgba(16, 24, 40, 0.28));
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.16);
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 48px;
}

.auth-review {
    width: min(680px, 100%);
    text-align: center;
    color: #ffffff;
    padding-bottom: 72px;
}

.auth-review-slide {
    display: none;
}

.auth-review-slide.is-active {
    display: block;
}

.auth-review h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(16, 24, 40, 0.28);
}

.auth-review h2 span {
    color: #8feaff;
    font-weight: 400;
}

.auth-review p {
    max-width: 560px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    text-shadow: 0 2px 8px rgba(16, 24, 40, 0.24);
}

.review-author strong,
.review-author span {
    display: block;
}

.review-author strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
}

.review-author span {
    color: rgba(255, 255, 255, 0.78);
    margin-top: 4px;
    font-size: 13px;
}

.auth-review-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.auth-review-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.auth-review-dot.is-active {
    background: #ffffff;
    transform: scale(1.15);
}

.auth-form-panel {
    min-height: 100vh;
    background: var(--panel);
    display: flex;
}

.auth-form-content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 48px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    min-height: 72px;
}

.auth-logo img {
    display: block;
    width: 180px;
    max-height: 90px;
    object-fit: contain;
    object-position: left center;
}

.auth-main {
    width: 100%;
    margin: auto 0;
}

.auth-title {
    margin-bottom: 26px;
}

.auth-title h1 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
}

.auth-title p {
    margin: 0;
    color: var(--muted);
}

.auth-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--heading);
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    min-height: 39px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: #abb6f0;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(85, 110, 230, 0.12);
}

.password-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
}

.password-group .form-control {
    border-radius: 4px 0 0 4px;
}

.password-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    min-height: 39px;
    border: 1px solid var(--border);
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: #f8f9fa;
    cursor: pointer;
}

.eye-icon {
    position: relative;
    width: 18px;
    height: 12px;
    border: 1.8px solid var(--muted);
    border-radius: 50%;
}

.eye-icon::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    background: var(--muted);
    transform: translate(-50%, -50%);
}

.password-toggle.is-visible .eye-icon::after {
    content: "";
    position: absolute;
    left: -3px;
    top: 5px;
    width: 24px;
    height: 2px;
    background: var(--muted);
    transform: rotate(-35deg);
}

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--heading);
    font-weight: 500;
}

.remember-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.login-button {
    display: block;
    width: 100%;
    min-height: 39px;
    border: 0;
    border-radius: 4px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.15s ease;
}

.login-button:hover {
    background: var(--primary-ink);
}

.login-button:active {
    background: var(--primary-active);
    transform: translateY(1px);
}

.validation-box.validation-summary-errors {
    color: #b4232f;
    background: var(--danger-soft);
    border: 1px solid #ffd2d2;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 18px;
}

.validation-box.validation-summary-valid {
    display: none;
}

.validation-box ul {
    margin: 0;
    padding-left: 18px;
}

.field-validation {
    display: block;
    min-height: 0;
    margin-top: 5px;
    color: var(--danger);
    font-size: 12px;
}

.auth-footer {
    margin-top: 40px;
    text-align: center;
    color: var(--muted);
}

.auth-footer p {
    margin: 0;
}

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

    .auth-visual {
        display: none;
    }

    .auth-form-panel,
    .auth-form-content {
        min-height: 100vh;
    }

    .auth-form-content {
        max-width: 520px;
        margin: 0 auto;
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .auth-form-content {
        padding: 24px 18px;
    }

    .auth-logo img {
        width: 156px;
    }
}
