/* ==========================================================================
   KameSystems • Admin Login (tema claro, alinhado ao wizard de orçamentos)
   ========================================================================== */

:root {
    --bg: #f5f8ff;
    --bg2: #eef4ff;

    --text: #0b1220;
    --muted: rgba(11, 18, 32, .72);

    --border: rgba(15, 23, 42, .12);
    --shadow: 0 18px 45px rgba(2, 6, 23, .10);
    --radius: 18px;

    --primary: #1ed6ff;
    --primary2: #3b82f6;
    --accent: #ffb020;
    --accent2: #ff5a3c;
    --danger: #ef4444;
}

/* reset */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    overflow-x: hidden;

    /* mesmo “cosmos leve” do site */
    background:
        radial-gradient(1200px 700px at 10% 0%, rgba(30, 214, 255, .22), transparent 60%),
        radial-gradient(900px 600px at 95% 25%, rgba(255, 176, 32, .20), transparent 62%),
        radial-gradient(900px 700px at 35% 95%, rgba(59, 130, 246, .20), transparent 60%),
        linear-gradient(180deg, var(--bg), var(--bg2));
}

/* estrelas sutis */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .45;
    background:
        radial-gradient(1px 1px at 12% 18%, rgba(11, 18, 32, .20), transparent 55%),
        radial-gradient(1px 1px at 22% 72%, rgba(11, 18, 32, .18), transparent 55%),
        radial-gradient(1.2px 1.2px at 38% 28%, rgba(11, 18, 32, .16), transparent 55%),
        radial-gradient(1px 1px at 62% 22%, rgba(11, 18, 32, .14), transparent 55%),
        radial-gradient(1px 1px at 78% 56%, rgba(11, 18, 32, .18), transparent 55%),
        radial-gradient(1.4px 1.4px at 86% 18%, rgba(11, 18, 32, .20), transparent 55%),
        radial-gradient(1px 1px at 92% 80%, rgba(11, 18, 32, .18), transparent 55%),
        radial-gradient(1px 1px at 9% 88%, rgba(11, 18, 32, .14), transparent 55%);
}

/* nébula leve animada */
body::after {
    content: "";
    position: fixed;
    inset: -40px;
    pointer-events: none;
    opacity: .75;
    background:
        radial-gradient(600px 360px at 20% 30%, rgba(30, 214, 255, .12), transparent 70%),
        radial-gradient(520px 320px at 80% 40%, rgba(255, 176, 32, .10), transparent 70%),
        radial-gradient(520px 360px at 45% 85%, rgba(59, 130, 246, .10), transparent 75%);
    animation: nebulaMove 14s ease-in-out infinite alternate;
}

@keyframes nebulaMove {
    from {
        transform: translate3d(-6px, -6px, 0) scale(1);
    }

    to {
        transform: translate3d(10px, 8px, 0) scale(1.02);
    }
}

/* estrutura */
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 26px 18px 34px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.layout {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 22px;
    align-items: stretch;
}

/* logo topo (igual o padrão do orçamento) */
.brand-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px 0 8px;
    position: relative;
    z-index: 3;
}

.brand-top img {
    height: 140px;
    width: auto;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    filter: drop-shadow(0 22px 40px rgba(2, 6, 23, .18));
    animation: floatLogo 4.6s ease-in-out infinite;
}

.brand-top::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 220px;
    border-radius: 999px;
    z-index: -1;
    opacity: .9;
    filter: blur(2px);
    transform: translateY(8px);
    background:
        radial-gradient(closest-side, rgba(30, 214, 255, .22), transparent 72%),
        radial-gradient(closest-side, rgba(255, 176, 32, .18), transparent 70%);
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* cards/painéis */
.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .86));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 2px);
    pointer-events: none;
    opacity: .55;
    background:
        radial-gradient(420px 220px at 15% 10%, rgba(30, 214, 255, .18), transparent 65%),
        radial-gradient(420px 240px at 90% 20%, rgba(255, 176, 32, .16), transparent 70%);
}

.left,
.right {
    position: relative;
    z-index: 0;
}

.left>*,
.right>* {
    position: relative;
    z-index: 1;
}

/* painel esquerdo (mensagem) */
.left {
    padding: 26px 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.hero h1 {
    margin: 10px 0 8px;
    font-size: 28px;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.bullets {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.bullet {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 4px;
    flex: 0 0 auto;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    box-shadow: 0 0 10px rgba(255, 176, 32, .18), 0 0 12px rgba(30, 214, 255, .16);
}

.footer-note {
    font-size: 12px;
    color: rgba(11, 18, 32, .58);
    border-top: 1px solid rgba(15, 23, 42, .10);
    padding-top: 14px;
}

/* painel direito (login) */
.right {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(15, 23, 42, .10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .82));
}

.topbar h2 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -.01em;
}

.topbar small {
    color: rgba(11, 18, 32, .62);
    font-size: 12px;
}

.content {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert {
    display: none;
    border: 1px solid rgba(239, 68, 68, .25);
    background: rgba(239, 68, 68, .08);
    color: rgba(127, 29, 29, 1);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.alert.is-show {
    display: block;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 12px;
    color: rgba(11, 18, 32, .68);
}

.input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color .12s ease, box-shadow .12s ease;
}

.input::placeholder {
    color: rgba(11, 18, 32, .42);
}

.input:focus {
    border-color: rgba(30, 214, 255, .65);
    box-shadow: 0 0 0 3px rgba(30, 214, 255, .16);
}

/* ===== senha com olho padrão no final do input ===== */
.pass-wrap {
    position: relative;
}

/* dá espaço pro ícone dentro do input */
.pass-wrap .input {
    padding-right: 46px;
}

/* botão do olho: “flat”, padrão e discreto */
.pass-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;

    border: 0;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;

    display: grid;
    place-items: center;

    opacity: .78;
    transition: opacity .12s ease, background .12s ease, transform .12s ease;
}

.pass-btn:hover {
    opacity: 1;
    background: rgba(15, 23, 42, .06);
    transform: translateY(-50%) translateY(-1px);
}

.pass-btn:active {
    transform: translateY(-50%);
}

.pass-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* estado “mostrando” a senha */
.pass-btn.is-on {
    opacity: 1;
}

/* acessibilidade: foco visível */
.pass-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 214, 255, .18);
    background: rgba(30, 214, 255, .10);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(11, 18, 32, .78);
}

.check input {
    width: 18px;
    height: 18px;
}

.hint {
    font-size: 12px;
    color: rgba(11, 18, 32, .62);
}

.hint:hover {
    text-decoration: underline;
}

.actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 6px;
}

.btn {
    min-width: 140px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}

.btn:hover {
    box-shadow: 0 12px 28px rgba(2, 6, 23, .12);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, .28);
}

.btn-primary {
    background: var(--primary2);
    color: #fff;
    border-color: rgba(59, 130, 246, .25);
    box-shadow: 0 14px 28px rgba(59, 130, 246, .18);
}

.btn-primary:hover {
    background: #2f6fe8;
    box-shadow: 0 18px 36px rgba(59, 130, 246, .22);
}

.foot {
    margin-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, .10);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: rgba(11, 18, 32, .58);
}

/* responsivo */
@media (max-width: 980px) {
    .wrap {
        justify-content: flex-start;
        align-items: center;
        padding: 18px 14px 26px;
    }

    .layout {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .panel {
        width: 100%;
        margin: 0 auto;
    }

    .brand-top img {
        height: 92px;
        max-width: 92vw;
    }

    .brand-top::before {
        width: min(92vw, 420px);
        height: 160px;
        transform: translateY(10px);
        left: 50%;
        translate: -50% 0;
    }

    .hero h1 {
        font-size: 24px;
    }
}

@media (max-width: 360px) {
    .brand-top img {
        height: 82px;
    }

    .hero h1 {
        font-size: 22px;
    }
}