/* ═══════════════════════════════════════════════
   GCAT · Login — Premium Dark UI
   ═══════════════════════════════════════════════ */

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

/* ── Body & Background ── */
body.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #f1f5f9;
    position: relative;
    overflow: hidden;

    /* Base escuro rico */
    background: #060a13;
}

/* Orb 1 — ciano */
body.login-body::before {
    content: '';
    position: absolute;
    width: 55vmax;
    height: 55vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, .28) 0%, transparent 70%);
    top: -18%;
    left: -14%;
    filter: blur(80px);
    animation: orbFloat 20s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

/* Orb 2 — violeta */
body.login-body::after {
    content: '';
    position: absolute;
    width: 50vmax;
    height: 50vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, .2) 0%, transparent 70%);
    bottom: -22%;
    right: -12%;
    filter: blur(80px);
    animation: orbFloat 20s ease-in-out infinite alternate-reverse;
    z-index: 0;
    pointer-events: none;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4%, 6%) scale(1.08); }
}

/* ── Noise overlay sutil ── */
body.login-body .login-container::before {
    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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── Login Card ── */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 44px 40px 40px;

    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(40px) saturate(1.3);
    -webkit-backdrop-filter: blur(40px) saturate(1.3);

    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 24px;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .03),
        0 24px 80px -12px rgba(0, 0, 0, .7),
        inset 0 1px 0 rgba(255, 255, 255, .06);

    text-align: center;
    animation: cardEntrance .7s cubic-bezier(.16, 1, .3, 1) both;
}

/* Borda brilhante de gradiente sutil no topo do card */
.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .4), rgba(129, 140, 248, .3), transparent);
    border-radius: 1px;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.97);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ── Logo ── */
.logo-img {
    max-width: 180px;
    margin-bottom: 36px;
    display: inline-block;
    filter: drop-shadow(0 2px 12px rgba(14, 165, 233, .15));
    transition: transform .4s cubic-bezier(.16, 1, .3, 1), filter .4s;
}

.logo-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 20px rgba(14, 165, 233, .3));
}

/* ── Error Message ── */
.error-message {
    display: none;
    background: rgba(239, 68, 68, .08);
    color: #fca5a5;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, .2);
    text-align: left;
    align-items: center;
    gap: 10px;
    animation: shake .45s ease-in-out;
}

.error-message i {
    font-size: 14px;
    color: #f87171;
}

/* ── Input Wrapper ── */
.input-wrapper {
    position: relative;
    margin-bottom: 22px;
    text-align: left;
}

.input-label {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
    letter-spacing: .8px;
    text-transform: uppercase;
}

/* Ícone dentro do input */
.input-wrapper i.input-icon {
    position: absolute;
    left: 16px;
    bottom: 15px;
    color: #475569;
    font-size: 13px;
    pointer-events: none;
    transition: color .3s ease, transform .3s ease;
}

/* Input field */
.custom-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    border-radius: 12px;
    font-size: 12px;
    font-family: inherit;
    color: #f1f5f9;
    outline: none;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.custom-input::placeholder {
    color: #475569;
    font-weight: 400;
}

/* Focus — glow ciano sutil */
.custom-input:focus {
    border-color: rgba(56, 189, 248, .5);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .12), 0 0 20px -4px rgba(14, 165, 233, .1);
}

/* Ícone acende ao focar / com conteúdo */
.custom-input:focus ~ .input-icon,
.custom-input:not(:placeholder-shown) ~ .input-icon {
    color: #38bdf8;
    transform: scale(1.1);
}

/* ── Toggle Senha ── */
.pwd-toggle {
    position: absolute;
    right: 16px;
    bottom: 15px;
    color: #475569;
    cursor: pointer;
    font-size: 13px;
    transition: color .25s, transform .25s;
}

.pwd-toggle:hover {
    color: #38bdf8;
    transform: scale(1.15);
}

/* ── Botão Login ── */
.btn-login {
    width: 100%;
    padding: 15px;
    margin-top: 10px;

    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: #fff;
    border: none;
    border-radius: 12px;

    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: .3px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    box-shadow: 0 4px 20px -4px rgba(14, 165, 233, .35);
    transition: all .35s cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer hover */
.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
    transition: left .6s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -4px rgba(14, 165, 233, .45), 0 0 0 1px rgba(255, 255, 255, .08);
}

.btn-login:active {
    transform: translateY(0) scale(.98);
    box-shadow: 0 2px 8px rgba(14, 165, 233, .25);
}

/* ── Footer ── */
.footer-text {
    margin-top: 32px;
    font-size: 11px;
    color: #475569;
    font-weight: 400;
    letter-spacing: .2px;
}

/* ── Version Badge ── */
.version-badge {
    position: fixed;
    bottom: 20px;
    right: 24px;
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #475569;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255, 255, 255, .06);
    z-index: 2;
    transition: all .3s ease;
    letter-spacing: .3px;
}

.version-badge:hover {
    background: rgba(255, 255, 255, .08);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, .12);
}

/* ── Animations ── */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* ── Responsivo ── */
@media (max-width: 480px) {
    .login-container {
        margin: 16px;
        padding: 32px 24px 28px;
        border-radius: 20px;
    }

    .logo-img {
        max-width: 150px;
        margin-bottom: 28px;
    }

    .btn-login {
        padding: 14px;
    }
}
