:root {
    --auth-primary: #2563eb;
    --auth-primary-dark: #1d4ed8;
    --auth-text: #172033;
    --auth-muted: #6b7280;
    --auth-border: #dfe4ec;
}

* {
    box-sizing: border-box;
}

body.admin-auth-shell {
    background: #f3f5f8;
    color: var(--auth-text);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.admin-auth-page {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr);
    min-height: 100vh;
}

.admin-auth-brand {
    background: #172033;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(34px, 5vw, 72px);
}

.admin-auth-brand-link {
    align-items: center;
    color: #fff;
    display: inline-flex;
    gap: 13px;
    text-decoration: none;
    width: fit-content;
}

.admin-auth-brand-link .admin-brand-mark {
    background: #fff;
    color: #1d4ed8;
    flex: 0 0 auto;
}

.admin-auth-brand-link > span:last-child {
    display: flex;
    flex-direction: column;
}

.admin-auth-brand-link strong {
    font-size: 18px;
}

.admin-auth-brand-link small {
    color: #aeb8cb;
    font-size: 11px;
    margin-top: 2px;
}

.admin-auth-intro {
    max-width: 520px;
}

.admin-auth-intro > span,
.admin-auth-form-head > span {
    color: #77a6ff;
    font-size: 11px;
    font-weight: 800;
}

.admin-auth-intro h1 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
    margin: 18px 0;
}

.admin-auth-intro p {
    color: #bbc4d5;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.admin-auth-content {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    padding: 42px;
}

.admin-auth-form-wrap {
    max-width: 430px;
    width: 100%;
}

.admin-auth-form-head h2 {
    font-size: 28px;
    line-height: 1.25;
    margin: 12px 0 10px;
}

.admin-auth-form-head p {
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 28px;
}

.admin-auth-form {
    display: grid;
    gap: 18px;
}

.admin-auth-form > label {
    display: grid;
    gap: 8px;
}

.admin-auth-form > label > span:first-child {
    font-size: 12px;
    font-weight: 700;
}

.admin-auth-form input[type="text"],
.admin-auth-form input[type="email"],
.admin-auth-form input[type="password"] {
    border: 1px solid var(--auth-border);
    border-radius: 6px;
    color: var(--auth-text);
    font: inherit;
    height: 48px;
    outline: none;
    padding: 0 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
}

.admin-auth-form input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.admin-auth-options {
    align-items: center;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
}

.admin-auth-options a,
.admin-auth-back {
    color: var(--auth-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.admin-auth-check {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.admin-auth-check input {
    height: 16px;
    width: 16px;
}

.admin-auth-submit {
    background: var(--auth-primary);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    height: 48px;
}

.admin-auth-submit:hover {
    background: var(--auth-primary-dark);
}

.admin-auth-back {
    display: inline-block;
    font-size: 12px;
    margin-top: 24px;
}

.admin-auth-message,
.admin-auth-validation {
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.admin-auth-message.is-success {
    background: #ecfdf3;
    color: #166534;
}

.admin-auth-message.is-error,
.admin-auth-validation {
    background: #fef2f2;
    color: #991b1b;
}

.admin-auth-validation:empty {
    display: none;
}

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

.field-validation-error {
    color: #b42318;
    font-size: 11px;
}

@media (max-width: 850px) {
    .admin-auth-page {
        display: block;
    }

    .admin-auth-brand {
        min-height: 220px;
        padding: 28px;
    }

    .admin-auth-intro h1 {
        font-size: 30px;
    }

    .admin-auth-intro p {
        display: none;
    }

    .admin-auth-content {
        min-height: calc(100vh - 220px);
        padding: 34px 22px;
    }
}
