@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ================= VARIÁVEIS DE TEMA ================= */
:root {
    --bg-nav: rgba(5, 13, 26, 0.94);
    --bg-card: rgba(7, 20, 38, 0.84);
    --bg-input: rgba(19, 41, 75, 0.72);
    --texto-principal: #ffffff;
    --texto-suave: rgba(255, 255, 255, 0.82);
    --dourado: #be9e0b;
    --dourado-claro: #ffd166;
    --borda-card: rgba(190, 158, 11, 0.35);
    --overlay-fundo: linear-gradient(rgba(5, 13, 26, 0.65), rgba(5, 13, 26, 0.86));
}

body.modo-claro {
    --bg-nav: rgba(255, 255, 255, 0.96);
    --bg-card: rgba(255, 255, 255, 0.94);
    --bg-input: #eef2f7;
    --texto-principal: #0b1b33;
    --texto-suave: #334155;
    --dourado: #b48c00;
    --dourado-claro: #9a7400;
    --borda-card: rgba(11, 27, 51, 0.16);
    --overlay-fundo: linear-gradient(rgba(244, 246, 250, 0.78), rgba(232, 237, 245, 0.9));
}

/* ================= RESET E ANIMAÇÕES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", "Inter", Arial, sans-serif;
}

@keyframes subirCard {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= MENU FIXO ================= */
nav {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--borda-card);
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    gap: 8px;
}

nav li {
    flex: 1;
    height: 46px;
}

.menu {
    color: var(--texto-principal);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 500;
    border-radius: 10px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

nav a:hover {
    background-color: #be9e0b;
    color: #050d1a;
}

/* ================= FUNDO E CARD DE VIDRO ================= */
body {
    background: var(--overlay-fundo), url("imagens/fundo2.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 92px 16px 40px;
    color: var(--texto-principal);
}

.container {
    width: 450px;
    max-width: 100%;
    background: var(--bg-card);
    border: 1.5px solid var(--borda-card);
    border-top: 4px solid var(--dourado);
    backdrop-filter: blur(22px);
    border-radius: 18px;
    padding: 34px 36px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
    animation: subirCard 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition: width 0.35s ease;
}

.container.modo-cadastro {
    width: 620px;
}

.tag-topo {
    display: block;
    text-align: center;
    font-family: "Orbitron", sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--dourado-claro);
    margin-bottom: 6px;
}

h1 {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(22px, 3vw, 28px);
    text-align: center;
    color: var(--texto-principal);
    margin-bottom: 6px;
}

.subtitulo-login {
    text-align: center;
    font-size: 13.5px;
    color: var(--texto-suave);
    margin-bottom: 20px;
}

/* ================= AVISOS ================= */
.oculto { display: none !important; }

.aviso {
    margin: 12px 0 16px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    text-align: center;
    font-weight: 600;
    animation: subirCard 0.25s ease;
}

.aviso.erro {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

body.modo-claro .aviso.erro { color: #b91c1c; }

.aviso.sucesso {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

body.modo-claro .aviso.sucesso { color: #047857; }

/* ================= CAMPOS DE ENTRADA ================= */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.input-container label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--texto-suave);
    margin-bottom: 5px;
}

.input-container input {
    width: 100%;
    height: 46px;
    background: var(--bg-input);
    outline: none;
    border: 1.5px solid var(--borda-card);
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--texto-principal);
    padding: 0 42px 0 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-container input::placeholder {
    color: var(--texto-suave);
    opacity: 0.65;
}

.input-container input:focus {
    border-color: var(--dourado);
    box-shadow: 0 0 0 3px rgba(190, 158, 11, 0.28);
}

.input-container img.icone-campo {
    position: absolute;
    right: 14px;
    bottom: 13px;
    width: 19px;
    height: 19px;
    filter: invert(1);
    opacity: 0.7;
    pointer-events: none;
}

body.modo-claro .input-container img.icone-campo {
    filter: invert(0);
    opacity: 0.55;
}

.btn-olho {
    position: absolute;
    right: 12px;
    bottom: 10px;
    background: none;
    border: none;
    color: var(--texto-suave);
    font-size: 16px;
    cursor: pointer;
}

.link-esqueceu {
    display: inline-block;
    font-size: 13px;
    margin-top: 6px;
    color: var(--dourado-claro);
    transition: opacity 0.2s ease;
}

.link-esqueceu:hover {
    text-decoration: underline;
}

/* Medidor de força de senha */
.forca-senha-box {
    margin-top: -8px;
    margin-bottom: 14px;
}

.forca-barra {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 5px;
}

.forca-preenchimento {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.forca-texto {
    font-size: 12px;
    color: var(--texto-suave);
}

/* ================= BOTÃO PRINCIPAL ================= */
.submit-button {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #be9e0b, #ffd166);
    border: none;
    border-radius: 10px;
    color: #050d1a;
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 14.5px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(190, 158, 11, 0.45);
}

/* ================= LINK DE TROCA ================= */
.resgister-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--texto-suave);
}

.resgister-link a {
    color: var(--dourado-claro);
    font-weight: 700;
}

.resgister-link a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container { padding: 26px 20px; }
    .grid-2 { grid-template-columns: 1fr; gap: 0; }
}