html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #eef3f9;
    color: #17202a;
}

* {
    box-sizing: border-box;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(340px, 560px);
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 32px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 24%), linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.auth-panel {
    min-height: 680px;
}

.auth-panel-brand {
    background: linear-gradient(180deg, #0f3b78 0%, #0c2f61 100%);
    color: #ffffff;
    padding: 48px 42px;
    border-radius: 28px 0 0 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(15, 39, 72, 0.14);
}

.auth-panel-form {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-left: 0;
    border-radius: 0 28px 28px 0;
    padding: 42px 36px;
    box-shadow: 0 20px 60px rgba(15, 39, 72, 0.10);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel-form-wide {
    padding: 38px 36px;
}

.auth-brand-badge,
.auth-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.auth-brand-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    margin-bottom: 18px;
}

.auth-badge {
    background: #eaf2ff;
    color: #1f5fbf;
    margin-bottom: 12px;
}

.auth-brand-title {
    margin: 0 0 16px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
}

.auth-brand-text {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
    font-size: 15px;
}

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 600;
}

.auth-feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #60a5fa;
    flex: 0 0 auto;
}

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

    .auth-header h2 {
        margin: 0 0 8px;
        font-size: 30px;
        color: #0f2748;
    }

    .auth-header p {
        margin: 0;
        color: #5e6b7a;
        font-size: 14px;
        line-height: 1.7;
    }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-grid-wide {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        font-size: 14px;
        font-weight: 700;
        color: #213547;
    }

.form-control {
    height: 46px;
    border-radius: 14px;
    border: 1px solid #d9e2ec;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .form-control:focus {
        border-color: #1f5fbf;
        box-shadow: 0 0 0 4px rgba(31, 95, 191, 0.10);
        background: #fff;
    }

.auth-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #405365;
    font-size: 14px;
    font-weight: 600;
}

.auth-primary-btn {
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: #1f5fbf;
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

    .auth-primary-btn:hover {
        opacity: 0.98;
        transform: translateY(-1px);
        background: #174ea0;
    }

.auth-footer {
    margin-top: 4px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #5e6b7a;
}

    .auth-footer a {
        color: #1f5fbf;
        text-decoration: none;
        font-weight: 700;
    }

        .auth-footer a:hover {
            text-decoration: underline;
        }

.auth-error-box,
.validation-summary-errors {
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff2f0;
    color: #c0392b;
    border: 1px solid #ffd7d2;
    font-size: 13px;
    font-weight: 700;
}

.auth-success-box {
    border-radius: 14px;
    padding: 12px 14px;
    background: #e9f9f0;
    color: #14945f;
    border: 1px solid #ccefdc;
    font-size: 13px;
    font-weight: 700;
}

.text-danger,
.field-validation-error {
    color: #c0392b;
    font-size: 12px;
    font-weight: 600;
}

.input-validation-error {
    border-color: #dc2626;
    background: #fffafa;
}

@media (max-width: 1100px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 760px;
        margin: 0 auto;
        padding: 24px;
    }

    .auth-panel-brand {
        border-radius: 28px 28px 0 0;
        min-height: auto;
    }

    .auth-panel-form {
        border-left: 1px solid #e7edf5;
        border-top: 0;
        border-radius: 0 0 28px 28px;
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .auth-shell {
        padding: 16px;
    }

    .auth-panel-brand,
    .auth-panel-form {
        padding: 24px 20px;
    }

    .auth-brand-title {
        font-size: 28px;
    }

    .auth-header h2 {
        font-size: 26px;
    }

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

    .auth-grid-wide {
        grid-column: span 1;
    }
    .auth-info-box {
        border-radius: 14px;
        padding: 12px 14px;
        background: #f3f7ff;
        color: #1f5fbf;
        border: 1px solid #d7e5ff;
        font-size: 13px;
        font-weight: 700;
    }
    .auth-inline-link {
        color: #1f5fbf;
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
    }

        .auth-inline-link:hover {
            text-decoration: underline;
        }

    .auth-inline-link {
        color: #1f5fbf;
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
    }

        .auth-inline-link:hover {
            text-decoration: underline;
        }

    .auth-secondary-form {
        margin-top: 12px;
    }

    .auth-secondary-btn {
        height: 46px;
        border: 1px solid #d9e2ec;
        border-radius: 14px;
        background: #ffffff;
        color: #0f2748;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
        transition: 0.15s ease;
    }

        .auth-secondary-btn:hover {
            background: #f8fbff;
        }
}
