:root {
    color-scheme: light;
    --background: #FFF8FA;
    --primary: #E6232A;
    --text-black: #0F1430;
    --label: #FDEEF3;
    --page-bg: #E5F79C;
    --on-dark: var(--text-black);
    --auth-gradient: var(--page-bg);

    --ink: var(--text-black);
    --muted: color-mix(in srgb, var(--text-black) 62%, transparent);
    --soft: color-mix(in srgb, var(--text-black) 42%, transparent);
    --line: color-mix(in srgb, var(--primary) 16%, var(--label));
    --primary-soft: color-mix(in srgb, var(--primary) 12%, transparent);
    --font-body: 'DM Sans', sans-serif;
    --font-display: 'Manrope', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--on-dark);
    font-family: var(--font-body);
    background: var(--auth-gradient);
    background-attachment: fixed;
}

body::before {
    position: fixed;
    z-index: 0;
    inset: 10% 7.5%;
    border: 1px solid color-mix(in srgb, var(--label) 7%, transparent);
    background-image: linear-gradient(color-mix(in srgb, var(--label) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--label) 5%, transparent) 1px, transparent 1px);
    background-size: 114px 104px;
    content: '';
    pointer-events: none;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.admin-shell {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(924px, calc(100% - 48px));
    min-height: 100vh;
    margin-inline: auto;
    flex-direction: column;
    justify-content: center;
    padding: 32px 0 24px;
}

.shell-header,
.shell-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shell-header {
    margin-bottom: 54px;
    color: var(--on-dark);
}

.suite-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--on-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-rule {
    width: 21px;
    height: 2px;
    background: var(--primary);
}

.secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid color-mix(in srgb, var(--label) 14%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--label) 6%, transparent);
    color: var(--on-dark);
    font-size: 10px;
}

.secure-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 10px color-mix(in srgb, #16a34a 60%, transparent);
}

.auth-card {
    display: flex;
    min-height: 520px;
    flex-wrap: wrap;
    overflow: hidden;
    border-radius: 21px;
    background: var(--background);
    color: var(--ink);
    box-shadow: 0 28px 90px color-mix(in srgb, var(--text-black) 30%, transparent);
    animation: rise-in 650ms cubic-bezier(.2, .7, .2, 1) both;
}

.brand-panel,
.auth-panel {
    flex: 0 0 100%;
    width: 100%;
}

.brand-panel {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(ellipse at 48% 39%, var(--background) 0%, var(--background) 40%, var(--label) 100%);
    text-align: center;
}

.brand-art {
    position: relative;
    display: grid;
    width: 265px;
    height: 265px;
    max-width: 82%;
    place-items: center;
}

.orbit {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.orbit-outer {
    inset: 7px;
}

.orbit-inner {
    inset: 31px;
}

.orbit-dot {
    position: absolute;
    z-index: 1;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}

.orbit-dot-one {
    top: 43%;
    right: 3px;
}

.orbit-dot-two {
    top: 20%;
    left: 17%;
    width: 5px;
    height: 5px;
    background: var(--primary);
}

.brand-logo {
    position: relative;
    z-index: 1;
    width: min(244px, 94%);
    height: auto;
}

.brand-copy {
    margin-top: 16px;
    padding: 0 18px;
}

.brand-title {
    margin: 0 0 7px;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
}

.brand-copy>p:not(.brand-title) {
    margin: 0;
    color: var(--muted);
    font-size:12px;
    line-height: 1.65;
}

.brand-tags {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.brand-tags i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.brand-tags b {
    color: var(--soft);
    font-weight: 500;
}

.auth-panel {
    display: flex;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    padding: 42px 52px;
}

.access-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 5px 9px;
    border: 0;
    border-radius: 999px;
    background: var(--label);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .45px;
    text-transform: uppercase;
}

.access-badge svg,
.security-note svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.auth-panel h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.22;
}

.intro {
    margin: 6px 0 15px;
    color: var(--muted);
    font-size:12px;
    line-height: 1.6;
}

.intro strong {
    color: var(--ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}

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

.auth-form>label {
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
    display: flex;
    height: 38px;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--background);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-wrap:focus-within {
    /* border-color: var(--primary); */
    /* box-shadow: 0 0 0 3px var(--primary-soft); */
}

.input-wrap>svg {
    width: 15px;
    height: 15px;
    margin-left: 10px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.input-wrap input.form-control {
    width: 1%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    padding: 0 11px;
    border: 0;
    border-radius: inherit;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-size:12px;
}

.input-wrap input::placeholder {
    color: var(--soft);
    opacity: 1;
}

.input-action {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.input-action svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.form-options {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: -1px 0 7px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
}

.remember-option input.form-check-input {
    width: 12px;
    height: 12px;
    margin: 0;
    accent-color: var(--primary);
}

.remember-option input.form-check-input:checked {
    border-color: var(--primary);
    background-color: var(--primary);
}

.remember-option input.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-options>a,
.recovery-actions>a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.primary-button {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--page-bg);
    box-shadow: 0 4px 9px color-mix(in srgb, var(--text-black) 10%, transparent);
    color: var(--ink);
    font-size:12px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 150ms ease, transform 150ms ease;
}

.primary-button:hover {
    filter: brightness(.96);
    color: var(--ink);
}

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

.primary-button:focus-visible,
.text-button:focus-visible,
.input-action:focus-visible,
a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
    outline-offset: 3px;
}

.primary-button span {
    font-size: 17px;
    line-height: 0;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 13px 0 0;
    padding: 9px;
    /* border: 1px solid var(--line); */
    border-radius: 7px;
    background: #fafafa;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.security-note svg {
    color: var(--primary);
}

.support-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.support-line a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.back-link {
    margin-top: 15px;
}

.back-link a {
    font-size: 10px;
}

.recovery-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.recovery-actions form {
    margin: 0;
}

.text-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.notice {
    margin: 0 0 12px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 10px;
    line-height: 1.5;
}

.notice-success {
    background: var(--label);
    color: var(--ink);
}

.notice-error {
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
    background: var(--label);
    color: var(--primary);
}

.dashboard-note {
    margin-top: 18px;
}

.dashboard-note+.auth-form {
    margin-top: 14px;
}

.shell-footer {
    margin-top: 31px;
    justify-content: center;
    color: var(--on-dark);
    font-size: 12px;
}

.shell-footer b {
    padding: 0 4px;
    color: color-mix(in srgb, var(--on-dark) 60%, transparent);
    font-weight: 500;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .brand-panel {
        flex-basis: 46%;
        width: 46%;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .auth-panel {
        flex-basis: 54%;
        width: 54%;
    }
}

@media (max-height: 700px) {
    .admin-shell {
        justify-content: flex-start;
        padding-block: 20px;
    }

    .shell-header {
        margin-bottom: 22px;
    }
}

@media (max-width: 760px) {
    .admin-shell {
        width: min(560px, calc(100% - 32px));
        padding: 22px 0;
    }

    .shell-header {
        margin-bottom: 22px;
    }

    .auth-card {
        border-radius: 16px;
    }

    .brand-panel {
        min-height: 210px;
        padding: 15px 12px 17px;
    }

    .brand-art {
        width: 140px;
        height: 112px;
    }

    .orbit-outer {
        inset: 0 14px;
    }

    .orbit-inner {
        inset: 13px 27px;
    }

    .brand-logo {
        width: min(124px, 94%);
    }

    .brand-copy {
        margin-top: 7px;
    }

    .brand-title {
        margin-bottom: 3px;
        font-size: 17px;
    }

    .brand-copy>p:not(.brand-title) {
        font-size: 12px;
    }

    .brand-tags {
        margin-top: 5px;
        font-size: 7px;
    }

    .auth-panel {
        padding: 27px clamp(20px, 7vw, 38px) 30px;
    }

    .auth-panel h1 {
        font-size: 24px;
    }

    .shell-footer {
        gap: 10px;
        margin-top: 17px;
        font-size: 8px;
    }
}

@media (max-width: 420px) {
    .admin-shell {
        width: calc(100% - 24px);
    }

    .suite-brand {
        gap: 7px;
        font-size: 8px;
        letter-spacing: .9px;
    }

    .secure-pill {
        padding: 5px 8px;
        font-size: 12px;
    }

    .auth-panel {
        padding-inline: 18px;
    }

    .shell-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .desktop-break {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

.primary-button:hover {
   background-color: #E5F79C;
}