@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --black: #050505;
    --black-2: #0e0e0e;
    --black-3: #161616;
    --white: #ffffff;
    --gold: #f6b400;
    --gold-light: #ffc72c;
    --gold-deep: #c98a00;
    --gold-glow: rgba(246, 180, 0, 0.45);
    --gray: #8a8a8a;
    --line: rgba(255, 255, 255, 0.08);
    --line-gold: rgba(246, 180, 0, 0.2);
    --ff-display: 'Bebas Neue', sans-serif;
    --ff-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    color: var(--white);
    font-family: var(--ff-body);
    background-color: var(--black);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: var(--black);
    background-image:
        radial-gradient(circle at 50% 20%, rgba(246, 180, 0, 0.08), transparent 55%),
        linear-gradient(160deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(5, 5, 5, 0.96) 100%),
        url('../assets/images/Capa_principal.jpeg');
    background-size: cover;
    background-position: center 60%;
}

img{
    display: flex;
    width: min(400px, 70vw);
    height: auto;
    margin: 0 auto;
}

h1 {
    position: relative;
    margin: 0 0 30px;
    color: var(--white);
    font-family: var(--ff-display);
    font-size: clamp(30px, 8vw, 52px);
    font-weight: 400;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
}

h1::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
    border-radius: 2px;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    padding: 38px 34px;
    background: var(--black-2);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.015);
}

form br {
    display: none;
}

form input {
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--black-3);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

form input:hover {
    border-color: rgba(246, 180, 0, 0.35);
}

form input:focus,
form input:focus-visible {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(246, 180, 0, 0.1);
}

form button[type='submit'] {
    margin-top: 8px;
    padding: 14px;
    border: none;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
    color: #0a0a0a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    min-height: 44px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form button[type='submit']:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -10px var(--gold-glow);
}

form button[type='submit']:active {
    transform: translateY(-1px);
}

form button[type='submit']:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.erro {
    color: #ff4d4d;
    background: #2a1111;
    border: 1px solid #ff4d4d;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: none;
}

.privacidade {
    margin-top: 20px;
    max-width: 400px;
    font-size: 12px;
    color: #888;
    text-align: center;
    line-height: 1.5;
}

.privacidade a {
    color: #f6b400;
    text-decoration: none;
}

.privacidade a:hover {
    text-decoration: underline;
}

.cookies {
    margin-top: 8px;
    max-width: 400px;
    font-size: 11px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px;
        justify-content: flex-start;
        padding-top: 48px;
    }

    form {
        padding: 30px 24px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 16px;
        padding-top: 32px;
    }

    form {
        padding: 24px 18px;
        border-radius: 16px;
    }

    h1 {
        margin-bottom: 22px;
    }
}

/* Altura curta (celular deitado) — evita cortar o formulário */
@media (max-height: 480px) and (orientation: landscape) {
    body {
        justify-content: flex-start;
        padding-top: 20px;
    }

    img {
        width: min(200px, 40vw);
        margin-bottom: 10px;
    }
}