
:root {
    --primary: #ff3366;
    --bg-gradient: linear-gradient(-45deg, #ff9a9e, #fad0c4, #fad0c4, #ffdde1);
    --glass: rgba(255, 255, 255, 0.9);
    --text-dark: #2d3436;
    --shadow-color: rgba(255, 51, 102, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    overflow-x: hidden; 
}

.main-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-card {
    background: var(--glass);
    width: 100%;
    max-width: 420px;
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1), 0 10px 20px var(--shadow-color);
    text-align: center;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 auto; 
}

.login-card:hover { transform: translateY(-5px); }

.floating-icon {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: floatIcon 3s ease-in-out infinite;
    border: 4px solid #fff0f5;
}

@keyframes floatIcon {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

.title {
    font-family: 'Pacifico', cursive;
    color: var(--primary);
    font-size: 2.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
}
.highlight { color: #ff6b81; }
.subtitle { color: #636e72; font-size: 0.95rem; margin-bottom: 30px; }

.input-wrapper { margin-bottom: 25px; }
.input-label { display: block; margin-bottom: 15px; font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }

.date-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.date-code-container input {
    width: 70px;
    height: 60px;
    border-radius: 12px;
    border: 2px solid #eee;
    background: #f9f9f9;
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
    outline: none;
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}
.date-code-container input::-webkit-outer-spin-button,
.date-code-container input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

.date-code-container input#year { width: 90px; }

.date-code-container input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.15);
    transform: translateY(-3px);
}

.separator { font-size: 1.5rem; color: #ccc; font-weight: bold; }

.text-input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 12px;
    border: 2px solid #eee;
    background: #f9f9f9;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
}
.text-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.15);
    transform: translateY(-3px);
}
.text-input::placeholder { color: #bbb; }

.pulse-button {
    width: 100%; padding: 16px; border: none; border-radius: 15px;
    background: linear-gradient(45deg, #ff3366, #ff6b81);
    color: white; font-size: 1.1rem; font-weight: 600; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(255, 51, 102, 0.3);
    animation: heartbeat 2s infinite;
}
.pulse-button:hover { transform: translateY(-2px) scale(1.02); }
@keyframes heartbeat { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

.error-box {
    margin-top: 20px; background: #ffe5e5; border-left: 5px solid #ff3333;
    padding: 10px 15px; border-radius: 8px; display: flex; align-items: center;
    gap: 12px; color: #c0392b; text-align: left; font-size: 0.9rem;
    animation: slideUp 0.3s ease;
}
.hidden { display: none; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.strawberry{
    position: fixed;
    top:-50px;
    width:26px;
    height:26px;

    background:url("assets/img/fresa.png");
    background-size:contain;
    background-repeat:no-repeat;

    opacity:.85;
    pointer-events:none;

    animation:fall linear forwards;
}

@keyframes fall{
    to{
        transform:translateY(110vh) rotate(360deg);
    }
}

.shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 10%, 90% { transform: translate3d(-1px, 0, 0); } 20%, 80% { transform: translate3d(2px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-4px, 0, 0); } 40%, 60% { transform: translate3d(4px, 0, 0); } }

@media (max-width: 480px) {
    .login-card { padding: 2.5rem 1.5rem; margin-top: 10px; }
    .floating-icon { width: 65px; height: 65px; font-size: 30px; top: -35px; }
    .title { font-size: 1.8rem; margin-top: 15px; }
    .subtitle { font-size: 0.9rem; }
    .pulse-button { padding: 14px; }
    
    .date-code-container input { width: 55px; height: 50px; font-size: 1.2rem; }
    .date-code-container input#year { width: 75px; }
    .separator { font-size: 1rem; }
}