/* Reset e base */
* {
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgba(20, 20, 20, 0.9);
    color: #eee;
    overflow-x: hidden;
    position: relative;
    backdrop-filter: blur(1px);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    min-height: 100vh;
    color: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Onda azul menor */
@keyframes waveCircle {
    0% {
        left: -25vw;
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
        opacity: 0.12;
    }

    50% {
        left: 50vw;
        border-radius: 50% 50% 50% 50% / 50% 0% 0% 50%;
        opacity: 0.24;
    }

    100% {
        left: 125vw;
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
        opacity: 0.12;
    }
}

body::before,
body::after {
    content: '';
    position: fixed;
    top: 50%;
    width: 50vw;
    height: 100vh;
    background: rgba(0, 115, 255, 0.35);
    filter: blur(75px);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: -1;
}

body::before {
    left: -25vw;
    animation: waveCircle 14s linear infinite;
    opacity: 0.12;
}

body::after {
    left: -25vw;
    animation: waveCircle 14s linear infinite;
    animation-delay: 7s;
    opacity: 0;
    animation-play-state: paused;
}

/* Top-bar fixa no topo */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid #222;
    color: #eee;
    font-size: 1.1rem;
    user-select: none;
    padding: 10px 0;
    overflow: hidden;
    z-index: 9999;
    display: flex;
    align-items: center;
}

/* Wrapper do ticker */
.ticker-wrapper {
    flex-grow: 1;
    overflow: hidden;
    margin-left: 20px;
    margin-right: 20px;
    white-space: nowrap;
    will-change: transform;
    position: relative;
    height: 30px;
}

/* Conteúdo rolando */
.ticker {
    display: inline-flex;
    gap: 40px;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
    gap: 4px;
}

.ticker-item .symbol {
    font-weight: 700;
    margin-right: 5px;
}

/* Setinhas de alta e baixa */
.ticker-item .price {
    display: flex;
    align-items: center;
    font-weight: 600;
    gap: 4px;
}

.ticker-item .price.up {
    color: #4caf50;
}

.ticker-item .price.up svg {
    fill: #4caf50;
    width: 12px;
    height: 12px;
    transform: translateY(1px);
}

.ticker-item .price.down {
    color: #f44336;
}

.ticker-item .price.down svg {
    fill: #f44336;
    width: 12px;
    height: 12px;
    transform: translateY(-1px) rotate(180deg);
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

/* Header principal abaixo do top-bar */
.header-main {
    margin-top: 70px;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    background: transparent;
}

/* Logo no canto esquerdo */
.logo {
    font-weight: 900;
    font-size: 1.8rem;
    color: #007bff;
    user-select: none;
    white-space: nowrap;
    background: transparent;
}


/* Botões Área do Membro e Painel Admin - botões simples */
.btn-membro,
.btn-admin {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #eee;
    user-select: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin-right: 15px;
    background: transparent;
}

.btn-membro {
    background-color: #eee;
    color: rgba(20, 20, 20, 0.9);
    transition: 0.3s ease all;
}

.btn-membro:hover {
    background-color: #007bff;
    color: #eee;
    transform: translateY(-3px);
}

.btn-admin {
    background-color: #007bff;
    color: #eee;
    transition: 0.3s ease all;
}

.btn-admin:hover {
    background-color: #eee;
    color: rgba(20, 20, 20, 0.9);
    transform: translateY(-3px);
}

/* Container dos botões da direita */
.header-buttons {
    display: flex;
    align-items: center;
}

/* --- Botão estilo IQ Option para Entrar / Registrar --- */
.btn-login-register {
    display: inline-flex;
    border-radius: 25px;
    overflow: hidden;
    font-weight: 600;
    font-size: 1rem;
    user-select: none;
    cursor: pointer;
    height: 42px;
    width: 160px;
    background: #eee;
}

.btn-login-register a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
    height: 100%;
    border-radius: 25px;
    font-weight: 700;
    user-select: none;

}

.btn-login-register:hover a {
    color: #fff;
}

.btn-login-register a+a {
    border-left: 1.5px solid #007bff;
}

.btn-login-register a.login {
    padding: 10px 10px 10px 10px;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    background: #eee;
    color: rgba(20, 20, 20, 0.9);
}

.btn-login-register a.login:hover {
    padding: 10px 10px 10px 10px;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    background: #d0d0d0;
    color: rgba(20, 20, 20, 0.9);
}

.btn-login-register a.register {
    padding: 15px 15px 15px 15px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    background: #007bff;
    color: #eee;
}

.btn-login-register a.register:hover {
    padding: 15px 15px 15px 15px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    background: #0057b5;
    color: #eee;
}


/* Container principal com largura menor */
.container {
    color: rgba(20, 20, 20, 0.9);
    padding: 60px 50px 70px;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
    margin-top: 40px;
    transform: translateY(-30px);
}

/* Título */
h2 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 25px;
    color: #007bff;
    line-height: 1.1;
    transform: translateY(-30px);
}

/* --- Label flutuante (label sobe, texto do input fica fixo) --- */
.floating-label-group {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
}

.floating-label-group input {
    width: 100%;
    padding: 15px 20px 15px 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.9);
    color: #eee;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.floating-label-group input:focus {
    outline: none;
    border-color: #007bff;
    background: rgba(20, 20, 20, 0.9);
}

.floating-label-group label {
    position: absolute;
    top: 50%;
    left: 20px;
    color: #bbb;
    font-size: 1.1rem;
    font-weight: 400;
    pointer-events: none;
    transform: translateY(-50%);
    transition: 0.3s ease all;
    background-color: transparent;
    padding: 0 5px;
    user-select: none;
    z-index: 2;
}

/* Label sobe, input texto permanece */
.floating-label-group input:focus+label,
.floating-label-group input:not(:placeholder-shown)+label {
    top: -8px;
    font-size: 0.85rem;
    color: #007bff;
    background: rgba(20, 20, 20, 0.9);
    font-weight: 700;
    transform: none;
}

/* Botão de submit */
button {
    background: linear-gradient(90deg, #007bff, #002080);
    color: #eee;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    padding: 18px 0;
    width: 100%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: linear-gradient(90deg, #004ea1, #00255a);
}

/* Mensagens */
.message {
    margin-top: 15px;
    color: #4caf50;
    font-weight: 700;
}

.error {
    color: #ff4d4d;
    font-weight: 700;
}

/* --- Botão de mudar idioma estilo minimalista no topo --- */
.language-switcher {
    position: fixed;
    top: 12px;
    right: 15px;
    z-index: 10000;
    background: #111;
    border: 1.5px solid #007bff;
    border-radius: 25px;
    padding: 5px 10px;
    color: #eee;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    box-shadow: 0 0 10px #007bff;
    transition: background-color 0.3s ease;
}

.language-switcher:hover {
    background-color: #007bff;
    color: #fff;
}

.language-switcher select {
    background: transparent;
    border: none;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 2px 5px;
    margin-left: 8px;
    border-radius: 15px;
}