.admin-auth-body {
    min-height: 100vh;
    background: var(--admin-bg);
}

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

.admin-auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 48px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #178b77 0%, #1c9b85 52%, #35aa82 100%);
}

.admin-auth-brand-panel::before,
.admin-auth-brand-panel::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.admin-auth-brand-panel::before {
    top: -120px;
    left: -150px;
    width: 420px;
    height: 420px;
}

.admin-auth-brand-panel::after {
    right: -180px;
    bottom: -200px;
    width: 520px;
    height: 520px;
}

.admin-auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-auth-brand-logo,
.admin-login-mobile-logo {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.admin-auth-brand-logo {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.admin-auth-brand-logo > span,
.admin-login-mobile-logo > span {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 0 100% 0 100%;
    transform: rotate(-20deg);
}

.admin-auth-brand strong {
    display: block;
    font-size: 19px;
    font-weight: 800;
}

.admin-auth-brand small {
    display: block;
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 600;
}

.admin-auth-brand-copy {
    position: relative;
    z-index: 1;
    margin: auto 0;
}

.admin-auth-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.admin-auth-brand-copy h1 {
    max-width: 520px;
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -1.2px;
}

.admin-auth-brand-copy p {
    max-width: 430px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.9;
}

.admin-auth-brand-foot {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.admin-auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 32px;
}

.admin-login-card {
    width: min(100%, 440px);
}

.admin-login-heading {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 34px;
}

.admin-login-heading h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.admin-login-heading p {
    margin: 5px 0 0;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 600;
}

.admin-login-mobile-logo {
    display: none;
    background: linear-gradient(#21a78f, var(--admin-green));
    box-shadow: 0 10px 20px -10px rgba(28, 155, 133, 0.8);
}

.admin-field {
    margin-bottom: 19px;
}

.admin-field > label {
    display: block;
    margin-bottom: 8px;
    color: var(--admin-text);
    font-size: 12px;
    font-weight: 700;
}

.admin-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0;
    color: var(--admin-muted-light);
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    box-shadow: 0 12px 30px -30px rgba(31, 45, 61, 0.45);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-input-wrap:focus-within {
    border-color: var(--admin-green-light);
    box-shadow: 0 0 0 4px rgba(28, 155, 133, 0.08);
}

.admin-input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    width: 19px;
    height: 19px;
    pointer-events: none;
    transform: translateY(-50%);
}

.admin-input-wrap > input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 50px;
    padding: 0 16px 0 48px;
    color: var(--admin-ink);
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    border: 0;
    outline: 0;
}

.admin-input-wrap > input[data-password-input] {
    padding-right: 52px;
}

.admin-input-wrap > input::placeholder {
    color: #b2b9c3;
}

.admin-input-wrap > input:-webkit-autofill,
.admin-input-wrap > input:-webkit-autofill:hover,
.admin-input-wrap > input:-webkit-autofill:focus,
.admin-input-wrap > input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--admin-ink);
    caret-color: var(--admin-ink);
    transition: background-color 9999s ease-out 0s;
}

.admin-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--admin-muted-light);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transform: translateY(-50%);
}

.admin-password-toggle:hover {
    color: var(--admin-green-dark);
    background: var(--admin-green-tint);
}

.admin-password-toggle svg {
    width: 18px;
    height: 18px;
}

.admin-field-error,
.admin-validation-summary {
    color: #c94762;
    font-size: 11px;
    font-weight: 600;
}

.admin-field-error {
    display: block;
    min-height: 16px;
    margin-top: 5px;
}

.admin-validation-summary {
    margin-bottom: 16px;
}

.admin-validation-summary:empty,
.admin-validation-summary ul:empty {
    display: none;
}

.admin-validation-summary ul {
    margin: 0;
    padding: 11px 14px;
    list-style: none;
    background: #fce7ec;
    border: 1px solid #f3c9d3;
    border-radius: 12px;
}

.admin-login-submit {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(#21a78f, var(--admin-green));
    border: 0;
    border-radius: 14px;
    box-shadow: 0 14px 26px -14px rgba(28, 155, 133, 0.85);
    cursor: pointer;
}

.admin-login-submit:hover {
    color: #fff;
    background: linear-gradient(#1fa087, var(--admin-green-dark));
}

.admin-login-submit svg {
    width: 18px;
    height: 18px;
}

.admin-login-note {
    margin: 22px 0 0;
    color: var(--admin-muted-light);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.admin-auth-message-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px;
    background: var(--admin-bg);
}

.admin-auth-message-card {
    width: min(100%, 520px);
    padding: 42px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 24px;
    box-shadow: var(--admin-shadow-card);
}

.admin-auth-message-code {
    display: inline-flex;
    padding: 7px 13px;
    color: var(--admin-green-dark);
    font-size: 13px;
    font-weight: 900;
    background: var(--admin-green-tint);
    border-radius: 999px;
}

.admin-auth-message-card h1 {
    margin: 18px 0 0;
    font-size: 24px;
    font-weight: 800;
}

.admin-auth-message-card p {
    margin: 9px 0 24px;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
}

.admin-auth-message-link {
    display: inline-flex;
    width: auto;
    min-width: 190px;
    padding-inline: 24px;
}

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

    .admin-auth-brand-panel {
        display: none;
    }

    .admin-auth-form-panel {
        padding: 32px 20px;
    }

    .admin-login-mobile-logo {
        display: flex;
    }
}

@media (max-width: 520px) {
    .admin-login-heading h2 {
        font-size: 25px;
    }

    .admin-auth-message-card {
        padding: 30px 20px;
    }
}
