/**
 * Admin Login — Mix Agora Gate v4
 * Palco full-bleed com efeitos de texto + formulário editorial.
 */

:root {
    --gate-navy: #071526;
    --gate-ink: #0b1f3a;
    --gate-blue: #1a6bb5;
    --gate-red: #d9272e;
    --gate-gold: #e8b45a;
    --gate-wa: #25d366;
    --gate-muted: #667085;
    --gate-line: #e4eaf2;
    --gate-paper: #f4f7fb;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    min-height: 100%;
    margin: 0;
}

body.mix-gate {
    min-height: 100vh;
    background: var(--gate-navy);
    color: var(--gate-ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.mix-gate-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .75fr);
}

/* ——— Palco da marca (full-bleed, sem “quadrado”) ——— */
.mix-gate-stage {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 40px 48px 44px;
    color: #fff;
}

.mix-gate-stage-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 12% 18%, rgba(217, 39, 46, .32), transparent 55%),
        radial-gradient(ellipse 55% 45% at 90% 80%, rgba(26, 107, 181, .4), transparent 52%),
        radial-gradient(ellipse 40% 30% at 55% 40%, rgba(232, 180, 90, .08), transparent 60%),
        linear-gradient(155deg, #040b14 0%, #071526 38%, #0b2748 100%);
}

.mix-gate-stage-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.75) 0%, transparent 85%);
    pointer-events: none;
}

.mix-gate-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    opacity: .55;
    animation: mixOrbFloat 10s ease-in-out infinite;
}

.mix-gate-orb-a {
    width: 280px;
    height: 280px;
    top: -60px;
    right: 8%;
    background: rgba(217, 39, 46, .35);
}

.mix-gate-orb-b {
    width: 320px;
    height: 320px;
    bottom: -80px;
    left: 20%;
    background: rgba(26, 107, 181, .35);
    animation-delay: -4s;
}

@keyframes mixOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -22px) scale(1.06); }
}

.mix-gate-stage-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--gate-red), #8b1519 55%, transparent);
    z-index: 3;
}

.mix-gate-stage-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.mix-gate-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: rgba(255,255,255,.7);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.mix-fx-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gate-red);
    box-shadow: 0 0 0 0 rgba(217, 39, 46, .55);
    animation: mixLivePulse 1.8s ease-out infinite;
}

@keyframes mixLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 39, 46, .55); }
    70% { box-shadow: 0 0 0 12px rgba(217, 39, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 39, 46, 0); }
}

.mix-gate-logo {
    display: block;
    max-width: min(380px, 82vw);
    max-height: 110px;
    width: auto;
    height: auto;
    margin: 0 0 20px;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,.4));
}

.mix-gate-brand {
    margin: 0 0 16px;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.04em;
}

.mix-gate-headline {
    margin: 0 0 16px;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.03em;
    color: #fff;
}

/* Efeitos de palavra */
.mix-fx-shine {
    background: linear-gradient(110deg, #fff 0%, var(--gate-gold) 35%, #fff 55%, var(--gate-gold) 80%, #fff 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: mixShine 3.2s linear infinite;
}

@keyframes mixShine {
    to { background-position: 220% center; }
}

.mix-fx-glow {
    color: #7ec8ff;
    text-shadow: 0 0 24px rgba(126, 200, 255, .45);
    animation: mixWordGlow 2.6s ease-in-out infinite;
}

.mix-fx-glow-wa {
    color: #6dff9a;
    text-shadow: 0 0 24px rgba(37, 211, 102, .4);
    animation-delay: .4s;
}

@keyframes mixWordGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.25); }
}

.mix-fx-underline {
    position: relative;
    display: inline-block;
    color: #fff;
}

.mix-fx-underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .05em;
    height: .12em;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gate-red), var(--gate-gold), var(--gate-blue));
    background-size: 200% 100%;
    animation: mixUnderline 2.8s ease-in-out infinite;
}

@keyframes mixUnderline {
    0%, 100% { background-position: 0% 50%; opacity: .9; }
    50% { background-position: 100% 50%; opacity: 1; }
}

.mix-fx-pulse-text {
    color: var(--gate-gold);
    font-weight: 800;
    animation: mixPulseText 1.6s ease-in-out infinite;
}

@keyframes mixPulseText {
    0%, 100% { opacity: 1; text-shadow: 0 0 0 transparent; }
    50% { opacity: .92; text-shadow: 0 0 18px rgba(232, 180, 90, .55); }
}

.mix-gate-lead {
    margin: 0 0 26px;
    max-width: 38em;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
}

.mix-gate-lead strong {
    color: #fff;
}

/* Pilares em produção */
.mix-gate-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.mix-pillar {
    position: relative;
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}

.mix-pillar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.mix-pillar:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.24);
}

.mix-pillar-ai::before { background: var(--gate-gold); }
.mix-pillar-img::before { background: var(--gate-blue); }
.mix-pillar-ig::before { background: linear-gradient(180deg, #f58529, #dd2a7b); }
.mix-pillar-wa::before { background: var(--gate-wa); }

.mix-pillar-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(37, 211, 102, .16);
    border: 1px solid rgba(37, 211, 102, .45);
    color: #6dff9a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    animation: mixPulseText 1.8s ease-in-out infinite;
}

.mix-pillar strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
}

.mix-pillar em {
    display: block;
    color: rgba(255,255,255,.62);
    font-size: 11.5px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.35;
}

.mix-pillar-ai strong { text-shadow: 0 0 18px rgba(232, 180, 90, .25); }
.mix-pillar-ig strong { text-shadow: 0 0 18px rgba(221, 42, 123, .3); }
.mix-pillar-wa strong { text-shadow: 0 0 18px rgba(37, 211, 102, .28); }

/* Pipeline */
.mix-gate-pipeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 22px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.08);
    width: fit-content;
    max-width: 100%;
}

.mix-gate-pipeline span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.85);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.mix-gate-pipeline i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gate-red);
    color: #fff;
    font-style: normal;
    font-size: 10px;
    font-weight: 800;
    animation: mixStepPop 2.4s ease-in-out infinite;
}

.mix-gate-pipeline span:nth-child(3) i { animation-delay: .4s; background: var(--gate-blue); }
.mix-gate-pipeline span:nth-child(5) i { animation-delay: .8s; background: #1f8f4e; }

@keyframes mixStepPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.mix-pipe-arrow {
    color: rgba(255,255,255,.35) !important;
    font-size: 14px !important;
    animation: mixArrowNudge 1.4s ease-in-out infinite;
}

@keyframes mixArrowNudge {
    0%, 100% { transform: translateX(0); opacity: .45; }
    50% { transform: translateX(3px); opacity: .9; }
}

.mix-gate-public {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.35);
    padding-bottom: 2px;
    transition: border-color .2s ease, color .2s ease, gap .2s ease;
}

.mix-gate-public:hover,
.mix-gate-public:focus {
    color: #fff;
    border-bottom-color: var(--gate-red);
    gap: 12px;
    text-decoration: none;
}

/* ——— Formulário ——— */
.mix-gate-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background:
        linear-gradient(180deg, #eef3f9 0%, #f7f9fc 45%, #eef3f9 100%);
}

.mix-gate-form-wrap {
    width: 100%;
    max-width: 400px;
}

.mix-gate-form-head {
    margin-bottom: 26px;
}

.mix-gate-form-logo {
    display: none;
    max-height: 48px;
    margin-bottom: 16px;
}

.mix-gate-form-head h2 {
    margin: 0 0 8px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--gate-ink);
}

.mix-gate-form-head p {
    margin: 0;
    color: var(--gate-muted);
    font-size: 14px;
    line-height: 1.5;
}

.mix-gate-form .mix-field {
    margin-bottom: 16px;
}

.mix-gate-form label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.mix-input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #d5dee9;
    border-radius: 10px;
    background: #fff;
    color: var(--gate-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mix-input:focus {
    outline: none;
    border-color: var(--gate-blue);
    box-shadow: 0 0 0 3px rgba(26, 107, 181, .14);
}

.mix-input-pass {
    position: relative;
}

.mix-input-pass .mix-input {
    padding-right: 48px;
}

.mix-pass-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 50px;
    border: 0;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
}

.mix-pass-toggle:hover {
    color: var(--gate-ink);
}

.mix-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gate-ink) 0%, #123a66 55%, #1a6bb5 100%);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease;
}

.mix-submit:hover:not(:disabled),
.mix-submit:focus:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.mix-submit.is-loading,
.mix-submit:disabled {
    opacity: .85;
    cursor: wait;
    transform: none;
}

.mix-forgot {
    display: block;
    margin-top: 16px;
    color: var(--gate-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.mix-forgot:hover {
    color: var(--gate-blue);
    text-decoration: none;
}

.mix-gate-foot {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--gate-line);
    text-align: center;
}

.mix-ip {
    margin: 0 0 6px;
    color: var(--gate-muted);
    font-size: 11px;
}

.mix-ip strong {
    color: var(--gate-ink);
}

.mix-copy {
    margin: 0 0 12px;
    color: #98a2b3;
    font-size: 11px;
}

.mix-dev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #dce3ee;
    border-radius: 8px;
    background: var(--gate-ink);
    color: rgba(255,255,255,.7);
    font-size: 10px;
    font-weight: 650;
    text-decoration: none;
}

.mix-dev:hover {
    color: #fff;
    text-decoration: none;
}

.mix-dev img {
    display: block;
    height: 15px;
    width: auto;
    max-width: 82px;
    object-fit: contain;
}

.mix-gate-form-wrap .error-message,
.mix-gate-form-wrap .success-message,
.mix-gate-form-wrap .alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 0;
    font-size: 12px;
    font-weight: 600;
}

.mix-gate-form-wrap .error-message,
.mix-gate-form-wrap .alert-danger {
    background: #fff1f1;
    color: #a81d25;
}

.mix-gate-form-wrap .success-message,
.mix-gate-form-wrap .alert-success {
    background: #eefaf3;
    color: #116738;
}

.mix-gate-form-wrap .error-message p,
.mix-gate-form-wrap .success-message p {
    margin: 0;
}

/* Entrada suave */
.mix-gate-anim {
    animation: mixGateIn .75s cubic-bezier(.22, 1, .36, 1) both;
}

.mix-gate-anim-delay { animation-delay: .1s; }
.mix-gate-anim-delay2 { animation-delay: .2s; }
.mix-gate-anim-delay3 { animation-delay: .32s; }

@keyframes mixGateIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.mix-pillar:nth-child(1) { animation: mixGateIn .75s cubic-bezier(.22, 1, .36, 1) both; animation-delay: .22s; }
.mix-pillar:nth-child(2) { animation: mixGateIn .75s cubic-bezier(.22, 1, .36, 1) both; animation-delay: .3s; }
.mix-pillar:nth-child(3) { animation: mixGateIn .75s cubic-bezier(.22, 1, .36, 1) both; animation-delay: .38s; }
.mix-pillar:nth-child(4) { animation: mixGateIn .75s cubic-bezier(.22, 1, .36, 1) both; animation-delay: .46s; }

@media (max-width: 991px) {
    .mix-gate-shell {
        grid-template-columns: 1fr;
    }

    .mix-gate-stage {
        min-height: auto;
        padding: 28px 20px 20px;
        align-items: flex-start;
    }

    .mix-gate-headline {
        font-size: 26px;
    }

    .mix-gate-lead {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .mix-gate-pillars {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }

    .mix-pillar em {
        display: none;
    }

    .mix-gate-pipeline {
        display: none;
    }

    .mix-gate-main {
        padding: 0 16px 36px;
        margin-top: -12px;
        background: transparent;
    }

    .mix-gate-form-wrap {
        padding: 28px 22px 20px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 20px 50px rgba(0,0,0,.28);
    }

    .mix-gate-form-logo {
        display: block;
    }

    .mix-gate-stage .mix-gate-logo {
        max-height: 64px;
    }
}

@media (max-width: 480px) {
    .mix-gate-stage {
        padding: 24px 16px 18px;
    }

    .mix-gate-form-head h2 {
        font-size: 26px;
    }

    .mix-gate-headline br {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mix-gate-anim,
    .mix-pillar,
    .mix-fx-shine,
    .mix-fx-glow,
    .mix-fx-underline::after,
    .mix-fx-pulse-text,
    .mix-fx-live,
    .mix-gate-orb,
    .mix-gate-pipeline i,
    .mix-pipe-arrow {
        animation: none !important;
    }
    .mix-submit {
        transition: none !important;
    }
    .mix-fx-shine {
        color: var(--gate-gold);
        background: none;
        -webkit-background-clip: initial;
        background-clip: initial;
    }
}

body.login-page {
    background: var(--gate-navy) !important;
}
