/* Importação da fonte de aventura */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

/* Cores do tema */

:root {
    --cor-azul-celeste: #87ceeb;
    --cor-azul-forte: #0000ff;
    --cor-branco: #ffffff;
    --cor-cinza-claro: #f0f0f0;
}


/* Configurações básicas */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    background: var(--cor-azul-celeste);
    /* Fundo azul celeste */
    color: var(--cor-branco);
    /* Cor de texto branca */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.treasure-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.treasure-header .title {
    font-size: 3rem;
    color: var(--cor-branco);
    /* Título em branco */
    text-shadow: 2px 2px 4px #000;
}

.treasure-header .subtitle {
    font-size: 1.2rem;
    color: var(--cor-cinza-claro);
    margin-top: 0.5rem;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 0 1rem;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    /* Fundo branco semi-transparente para o card */
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--cor-azul-forte);
    /* Borda em azul forte */
    position: relative;
    overflow: hidden;
    color: #333;
    /* Cor do texto no card para contraste */
}

.card-title {
    text-align: center;
    font-size: 2rem;
    color: var(--cor-azul-forte);
    margin-bottom: 2rem;
}

.image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.treasure-chest-img {
    width: 150px;
    height: auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: #f8f8f8;
    color: #333;
    font-size: 1rem;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 0 8px var(--cor-azul-forte);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--cor-azul-forte);
    /* Botão em azul forte */
    border: none;
    border-radius: 8px;
    color: var(--cor-branco);
    /* Texto do botão em branco */
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background-color: #0000cd;
    /* Um azul um pouco mais escuro no hover */
    transform: translateY(-2px);
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
}

.login-link a {
    color: var(--cor-azul-forte);
    /* Link em azul forte */
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

.coin-images {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.gold-coin {
    width: 40px;
    height: 40px;
    opacity: 0.8;
    animation: rotateCoin 5s linear infinite;
}

.coin1 {
    animation-delay: 0s;
}

.coin2 {
    animation-delay: 2.5s;
}

@keyframes rotateCoin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.footer {
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    color: var(--cor-cinza-claro);
    font-size: 0.8rem;
}