/* ===== Fundo escuro sofisticado com leve brilho metálico ===== */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: radial-gradient(circle at top left, #1b1b1b, #000);
    background-size: cover;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Topo (logo + título) ===== */
.topo {
    text-align: center;
    margin-top: 40px;
}

#logo {
    width: 160px;
    height: auto;
    border-radius: 10px;
    animation: flutuar 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(190, 170, 110, 0.3));
}

@keyframes flutuar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.topo h1 {
    color: #c7b16a;
    font-size: 22px;
    margin-top: 12px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(199, 177, 106, 0.3);
}

/* ===== Container do formulário ===== */
.container {
    width: 100%;
    max-width: 420px;
    background: rgba(22, 22, 22, 0.95);
    margin: 20px auto;
    padding: 25px 15px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(190, 170, 110, 0.2);
    backdrop-filter: blur(6px);
    box-sizing: border-box;
}

/* ===== Título ===== */
h2 {
    text-align: center;
    color: #d0bc7a;
    margin-bottom: 20px;
    text-shadow: 0 0 6px rgba(208, 188, 122, 0.4);
}

/* ===== Labels e Inputs ===== */
form label {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    font-weight: 600;
    color: #ddd;
}

input, select {
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 8px;
    font-size: 15px;
    background: #111;
    color: #eee;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}

input:focus, select:focus {
    border-color: #c7b16a;
    box-shadow: 0 0 6px rgba(199, 177, 106, 0.4);
}

/* ===== Botão principal ===== */
input[type="submit"] {
    background: linear-gradient(90deg, #c7b16a, #9e8b56);
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
    display: block;
    margin: 20px auto 0;
    width: 100%;
    border-radius: 8px;
    padding: 12px;
}

input[type="submit"]:hover {
    background: linear-gradient(90deg, #9e8b56, #c7b16a);
    box-shadow: 0 0 10px rgba(199, 177, 106, 0.4);
}

/* ===== Links ===== */
.links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.links a {
    margin: 0 10px;
    font-size: 14px;
    color: #c7b16a;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.links a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(199, 177, 106, 0.6);
}

/* ===== Mensagem de erro ===== */
.erro {
    color: #ff5c5c;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ===== Responsividade ===== */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 15px 10px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    input, select {
        font-size: 14px;
        padding: 8px;
    }

    input[type="submit"] {
        font-size: 14px;
        padding: 10px;
    }

    .topo h1 {
        font-size: 18px;
    }
}
