:root {
    --bg:     #000000;
    --card:   rgba(255,255,255,0.03);
    --border: rgba(255,255,255,0.08);
    --text:   #ffffff;
    --muted:  #6b6b78;
    --blue:   #6ea8ff;
    --purple: #7c5cff;
    --green:  #4ade80;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* =============================================
    BACKGROUND GRID
============================================= */
body::before {
    content: "";
    position: fixed; inset: 0;
    background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
    opacity: .5;
    pointer-events: none;
    z-index: -4;
}

/* =============================================
    NOISE
============================================= */
body::after {
    content: "";
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: .4;
    pointer-events: none;
    z-index: -3;
}

/* =============================================
    GLOW ORBS
============================================= */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: -2;
}
.g1 { width:600px;height:600px; background:rgba(255,255,255,.04); top:-220px; left:-180px; }
.g2 { width:560px;height:560px; background:rgba(255,255,255,.03); bottom:-200px; right:-150px; }
.g3 { width:380px;height:380px; background:rgba(255,255,255,.02); top:50%;left:50%; transform:translate(-50%,-50%); }

/* =============================================
    PIXEL LOGO CANVAS
============================================= */
#pixelCanvas {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.px-logo-col {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: var(--gap, 5px);
    padding-bottom: var(--pb, 18%);
}
.px-logo-dot {
    width: var(--sz, 10px);
    height: var(--sz, 10px);
    border-radius: 2px;
    background: #fff;
    opacity: 0;
    animation: px-blink var(--dur, 2.4s) var(--del, 0s) infinite ease-in-out;
}
@keyframes px-blink {
    0%   { opacity: 0; }
    15%  { opacity: var(--peak, .18); }
    50%  { opacity: calc(var(--peak, .18) * .45); }
    80%  { opacity: var(--peak, .18); }
    100% { opacity: 0; }
}

/* =============================================
    CONNECTOR LINES (SVG background)
============================================= */
.lines-canvas {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .35;
}

/* =============================================
    LAYOUT
============================================= */
.page {
    width: 100%; max-width: 1400px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 480px 1fr;
    align-items: center;
    padding: 40px 48px;
    position: relative;
    z-index: 1;
    gap: 0;
}

/* =============================================
    SIDE CHIPS
============================================= */
.chips-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}
.chips-left  { align-items: flex-start; padding-left: 20px; }
.chips-right { align-items: flex-end;   padding-right: 20px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
    opacity: 0;
    transition: border-color .3s, color .3s, box-shadow .3s;
    animation: chipReveal .6s cubic-bezier(.2,.8,.2,1) forwards;
    cursor: default;
}
.chip:hover {
    border-color: rgba(255,255,255,.18);
    color: rgba(255,255,255,.9);
    box-shadow: 0 0 20px rgba(255,255,255,.04);
}

@keyframes chipReveal {
    0%   { opacity:0; transform:translateY(12px); }
    100% { opacity:1; transform:translateY(0); }
}

.chip-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* individual chip offsets — simulate scattered layout */
.chips-left  .chip:nth-child(1) { margin-left: 60px;  animation-delay:.1s; }
.chips-left  .chip:nth-child(2) { margin-left: 0px;   animation-delay:.2s; }
.chips-left  .chip:nth-child(3) { margin-left: 80px;  animation-delay:.3s; }
.chips-left  .chip:nth-child(4) { margin-left: 20px;  animation-delay:.4s; }
.chips-left  .chip:nth-child(5) { margin-left: 100px; animation-delay:.5s; }
.chips-left  .chip:nth-child(6) { margin-left: 40px;  animation-delay:.6s; }

.chips-right .chip:nth-child(1) { margin-right: 40px;  animation-delay:.15s; }
.chips-right .chip:nth-child(2) { margin-right: 110px; animation-delay:.25s; }
.chips-right .chip:nth-child(3) { margin-right: 20px;  animation-delay:.35s; }
.chips-right .chip:nth-child(4) { margin-right: 80px;  animation-delay:.45s; }
.chips-right .chip:nth-child(5) { margin-right: 0px;   animation-delay:.55s; }
.chips-right .chip:nth-child(6) { margin-right: 60px;  animation-delay:.65s; }
.chips-right .chip:nth-child(7) { margin-right: 130px; animation-delay:.75s; }

/* float animation per chip */
.chip:nth-child(odd)  { animation-name: chipReveal, chipFloat1; animation-duration:.6s, 6s; animation-fill-mode:forwards, none; animation-delay:var(--ad,.1s), calc(var(--ad,.1s) + .6s); animation-iteration-count:1, infinite; }
.chip:nth-child(even) { animation-name: chipReveal, chipFloat2; animation-duration:.6s, 7s; animation-fill-mode:forwards, none; animation-delay:var(--ad,.2s), calc(var(--ad,.2s) + .6s); animation-iteration-count:1, infinite; }

@keyframes chipFloat1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes chipFloat2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* =============================================
    LOGIN CARD
============================================= */
.login-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 44px 38px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(32px);
    box-shadow:
    0 0 0 1px rgba(255,255,255,.03),
    0 50px 130px rgba(0,0,0,.9),
    inset 0 1px 0 rgba(255,255,255,.06);
    position: relative;
    overflow: hidden;
    animation: cardReveal .8s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes cardReveal {
    0%   { opacity:0; transform:translateY(24px) scale(.97); }
    100% { opacity:1; transform:translateY(0)   scale(1); }
}

/* top shimmer */
.login-card::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.07), transparent 22%);
    pointer-events: none;
    border-radius: inherit;
}

/* subtle glow inside card */
.login-card::after {
    content: "";
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    filter: blur(60px);
    top: -100px; left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* =============================================
    BADGE
============================================= */
.badge {
    display: flex; align-items: center; gap: 8px;
    width: fit-content;
    margin: 0 auto 32px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
}
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.65)} }
.badge span { font-size: 12.5px; color: rgba(255,255,255,.55); font-weight: 500; }

/* =============================================
    LOGO MARK
============================================= */
.logo-wrap {
    display: flex; justify-content: center;
    margin-bottom: 26px;
}
.logo-circle {
    width: 80px; height: 80px;
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.logo-circle svg { width: 36px; height: 36px; }

/* =============================================
    TYPOGRAPHY
============================================= */
.card-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(190,210,255,.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.card-sub {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 36px;
}
.card-sub strong { color: rgba(255,255,255,.35); font-weight: 500; }

/* =============================================
    DIVIDER
============================================= */
.divider {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 24px;
}
.divider-line { flex: 1; height: 1px; background: rgba(255,255,255,.06); }
.divider-text { font-size: 11px; color: var(--muted); letter-spacing: .06em; }

/* =============================================
    GOOGLE BUTTON
============================================= */
.google-btn {
    width: 100%;
    height: 54px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255,255,255,.1);
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 30px rgba(0,0,0,.4);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.google-btn::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.04) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform .5s ease;
}
.google-btn:hover::before { transform: translateX(100%); }
.google-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 16px 50px rgba(255,255,255,.06), inset 0 1px 0 rgba(255,255,255,.08);
}
.google-btn:active { transform: scale(.98); }
.google-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =============================================
    FEATURES MINI ROW
============================================= */
.features-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.feat-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: rgba(255,255,255,.3);
}
.feat-item svg { width: 12px; height: 12px; color: var(--green); }

/* =============================================
    FOOTER NOTE
============================================= */
.footer-note {
    text-align: center;
    color: #444;
    font-size: 11.5px;
    line-height: 1.75;
}
.footer-note a { color: rgba(255,255,255,.3); text-decoration: none; }
.footer-note a:hover { color: rgba(255,255,255,.65); }

/* =============================================
    TOAST
============================================= */
.toast {
    position: fixed;
    right: 28px; bottom: 28px;
    padding: 16px 20px;
    border-radius: 20px;
    display: flex; align-items: center; gap: 14px;
    background: rgba(10,10,10,.92);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    transform: translateY(30px);
    opacity: 0;
    transition: .45s cubic-bezier(.2,.8,.2,1);
    z-index: 999;
}
.toast.show { opacity:1; transform:translateY(0); }
.toast-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(74,222,128,.1);
    color: var(--green);
    font-weight: 700;
    font-size: 16px;
}
.toast-content strong { display:block; font-size:14px; margin-bottom:2px; }
.toast-content span   { font-size:12.5px; color:var(--muted); }

/* =============================================
    RESPONSIVE - MODIFICADO PARA MOBILE
============================================= */

/* Tablet e telas médias */
@media(max-width:1100px) {
    .page { 
    grid-template-columns: 1fr; 
    padding: 20px; 
    min-height: 100vh;
    overflow-y: auto;
    }
    .chips-col { 
    display: none; 
    }
    .login-wrap {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    }
}

/* Mobile - até 768px */
@media(max-width:768px) {
    body {
    overflow-y: auto;
    align-items: flex-start;
    padding: 20px 0;
    }

    .page {
    padding: 10px 16px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    }

    .login-card {
    padding: 32px 20px;
    border-radius: 28px;
    max-width: 100%;
    margin: 10px 0;
    }

    .card-title {
    font-size: 24px;
    letter-spacing: -0.5px;
    }

    .card-sub {
    font-size: 13px;
    margin-bottom: 28px;
    padding: 0 4px;
    }

    .badge {
    margin-bottom: 24px;
    padding: 6px 14px;
    }
    .badge span {
    font-size: 11px;
    }

    .logo-circle {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    }
    .logo-circle div {
    transform: scale(0.85);
    }

    .google-btn {
    height: 50px;
    font-size: 13.5px;
    border-radius: 14px;
    }
    .google-btn svg {
    width: 18px;
    height: 18px;
    }

    .features-row {
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    }
    .feat-item {
    font-size: 11px;
    }
    .feat-item svg {
    width: 11px;
    height: 11px;
    }

    .footer-note {
    font-size: 10.5px;
    line-height: 1.6;
    }

    .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    }
    .toast-content strong {
    font-size: 13px;
    }
    .toast-content span {
    font-size: 11.5px;
    }

    /* Ajuste dos glows para mobile */
    .g1, .g2, .g3 {
    transform: scale(0.5);
    opacity: 0.6;
    }
    .g1 {
    top: -100px;
    left: -100px;
    }
    .g2 {
    bottom: -100px;
    right: -100px;
    }
}

/* Mobile pequeno - até 480px */
@media(max-width:480px) {
    .login-card {
    padding: 24px 16px;
    border-radius: 24px;
    }

    .card-title {
    font-size: 20px;
    }

    .card-sub {
    font-size: 12px;
    margin-bottom: 22px;
    }

    .badge {
    margin-bottom: 20px;
    padding: 5px 12px;
    }
    .badge span {
    font-size: 10px;
    }
    .badge-dot {
    width: 6px;
    height: 6px;
    }

    .logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin-bottom: 4px;
    }
    .logo-circle div {
    transform: scale(0.75);
    }

    .google-btn {
    height: 46px;
    font-size: 12.5px;
    gap: 10px;
    border-radius: 12px;
    }
    .google-btn svg {
    width: 16px;
    height: 16px;
    }

    .features-row {
    gap: 10px;
    margin-bottom: 18px;
    }
    .feat-item {
    font-size: 10px;
    gap: 4px;
    }

    .footer-note {
    font-size: 9.5px;
    line-height: 1.5;
    }

    .toast {
    padding: 12px 14px;
    border-radius: 14px;
    gap: 10px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    }
    .toast-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
    }
    .toast-content strong {
    font-size: 12px;
    }
    .toast-content span {
    font-size: 10.5px;
    }
}

/* Previne scroll horizontal em qualquer dispositivo */
@media(max-width:768px) {
    * {
    max-width: 100vw;
    }
    body {
    overflow-x: hidden;
    }
}