:root {
    --auth-bg: #06080d;
    --auth-card: #0c1018;
    --auth-panel: #0f141c;
    --auth-accent: #3b82f6;
    --auth-accent-dim: #2563eb;
    --auth-accent-deep: #1d4ed8;
    --auth-accent-glow: rgba(59, 130, 246, 0.35);
    --auth-cyan: #60a5fa;
    --auth-text: #f1f5f9;
    --auth-muted: #64748b;
    --auth-border: rgba(255, 255, 255, 0.08);
    --auth-input-bg: #080c12;
    --auth-radius: 0.85rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.admin-guest {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--auth-text);
    background: var(--auth-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.auth-page {
    position: relative;
    min-height: 100vh;
}

.auth-page__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(29, 78, 216, 0.25), transparent 55%),
        var(--auth-bg);
}

.auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.auth-glow--tl {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -80px;
    background: rgba(59, 130, 246, 0.15);
}

.auth-glow--br {
    width: 380px;
    height: 380px;
    bottom: -100px;
    right: -60px;
    background: rgba(29, 78, 216, 0.12);
}

.auth-page__content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: calc(var(--auth-radius) + 0.1rem);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 0 60px -20px var(--auth-accent-glow);
    animation: auth-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Brand (left) */
.auth-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 0.9rem;
    background:
        linear-gradient(165deg,
            rgba(29, 78, 216, 0.35) 0%,
            rgba(30, 58, 138, 0.75) 45%,
            rgba(15, 23, 42, 0.9) 100%);
    border-right: 1px solid var(--auth-border);
}

.auth-brand__main {
    text-align: center;
}

.auth-brand__logo-box {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.5rem;
    padding: 0.25rem;
    background: #fff;
    border-radius: 0.65rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0.4rem;
}

.auth-brand__name {
    margin: 0 0 0.1rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
}

.auth-brand__role {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--auth-cyan);
}

.auth-brand__features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-brand__features li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.62rem;
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.2;
}

.auth-brand__features i {
    font-size: 0.72rem;
    color: var(--auth-accent);
    flex-shrink: 0;
}

.auth-brand__features .bi-whatsapp {
    color: #4ade80;
}

/* Form (right) */
.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1rem 0.85rem;
    background: var(--auth-panel);
}

.auth-panel__head {
    margin-bottom: 0.75rem;
    text-align: center;
}

.auth-panel__title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0;
}

.auth-panel__title-row i {
    font-size: 1rem;
    color: var(--auth-accent);
}

.auth-panel__head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.auth-panel__sub {
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    color: var(--auth-muted);
    line-height: 1.3;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.65rem;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-size: 0.75rem;
}

.auth-alert i {
    flex-shrink: 0;
}

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

.auth-field__label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.85);
}

.auth-field__box {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field__box > i:first-child {
    position: absolute;
    left: 0.7rem;
    font-size: 0.82rem;
    color: var(--auth-muted);
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s;
}

.auth-field__input {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 2rem;
    font-family: inherit;
    font-size: 0.78rem;
    color: var(--auth-text);
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-border);
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field__input::placeholder {
    color: #475569;
}

.auth-field__input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.auth-field__box:focus-within > i:first-child {
    color: var(--auth-accent);
}

.auth-field__eye {
    position: absolute;
    right: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: none;
    border-radius: 0.35rem;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    font-size: 0.82rem;
    transition: color 0.15s;
}

.auth-field__eye:hover {
    color: var(--auth-accent);
}

.auth-btn {
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.55rem 1rem;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-deep) 100%);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.25),
        0 3px 14px var(--auth-accent-glow);
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
}

.auth-btn:hover {
    filter: brightness(1.08);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.4),
        0 5px 20px var(--auth-accent-glow);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.65rem 0 0;
    font-size: 0.62rem;
    color: var(--auth-muted);
}

.auth-secure i {
    font-size: 0.65rem;
    color: var(--auth-accent);
}

.auth-page__footer {
    margin-top: 0.85rem;
    font-size: 0.68rem;
    color: rgba(100, 116, 139, 0.55);
}

@media (max-width: 767.98px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .auth-brand {
        border-right: none;
        border-bottom: 1px solid var(--auth-border);
        padding: 0.85rem 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
    }

    .auth-brand__main {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 0.65rem;
    }

    .auth-brand__logo-box {
        margin: 0;
        flex-shrink: 0;
    }

    .auth-brand__features {
        display: none !important;
    }

    .auth-panel {
        padding: 0.85rem 1rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none;
    }
}
