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

body {
    background-color: #FFF5BA; 
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden; /* Evita scroll por las monedas */
}

/* HEADER SUPERIOR */
.login-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 10px 5%;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #A0E7E5;
    z-index: 1000;
}

.logo-container-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-logo {
    width: 35px;
    height: auto;
}

.login-header h1 {
    font-family: 'Fredoka', sans-serif;
    color: #CBA6F7;
    font-size: 1.4rem;
    margin: 0;
}

/* LLUVIA DE MONEDAS */
#rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.coin-rain {
    position: absolute;
    width: 35px;
    height: auto;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    animation: fall linear forwards;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
}

/* ANIMACIÓN PARA EL ALIMENTO AL HACER CLIC */
.food-pop {
    position: fixed;
    width: 45px;
    height: auto;
    z-index: 100;
    pointer-events: none;
    animation: popAndFade 0.8s ease-out forwards;
}

@keyframes popAndFade {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.5) translateY(-20px); opacity: 1; }
    100% { transform: scale(1.2) translateY(-40px); opacity: 0; }
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(360deg); }
}

/* CONTENEDOR DE REGISTRO */
.registro-container {
    background-color: #FFFFFF;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 10px 10px 0px #CBA6F7; 
    border: 3px solid #333;
    width: 350px;
    text-align: center;
    position: relative;
    z-index: 20;
}

.back-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.2s;
}

.arrow-icon {
    width: 18px;
    margin-right: 5px;
}

.btn-back:hover {
    color: #CBA6F7;
    transform: translateX(-3px);
}

h2 {
    font-family: 'Fredoka', sans-serif;
    color: #CBA6F7;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #FFB6C1; 
    border-radius: 10px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

input:focus { border-color: #A0E7E5; }

button {
    background-color: #FFB6C1;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
    transition: 0.3s;
}

button:hover {
    background-color: #CBA6F7;
    transform: translateY(-3px);
}

.footer-login {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #333;
    z-index: 10;
}

.link-highlight { color: #CBA6F7; text-decoration: none; font-weight: bold; }
.link-highlight:hover { text-decoration: underline; }

.pass-field {
    position: relative;
    display: flex;
    align-items: center;
}

.pass-field input {
    flex: 1;
    margin: 10px 0;
    padding-right: 56px;
}

.btn-toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    background: transparent;
    color: #CBA6F7;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s, background 0.2s;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-pass:hover {
    opacity: 1;
    background: #f0e7ff;
    transform: translateY(-50%);
}