/* Login Page Styles - Millonario Coco */

.login-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0a00 0%, #3d1a0a 50%, #1a0a00 100%);
    padding: 2rem;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.marigold-petals {
    position: absolute;
    width: 100%;
    height: 100%;
}

.petal {
    position: absolute;
    top: -50px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ff8c42, #f28c38);
    border-radius: 50% 0 50% 0;
    opacity: 0.6;
    animation: fall 15s linear infinite;
    box-shadow: 0 0 10px rgba(242, 140, 56, 0.8);
}

@keyframes fall {
    0% {
        top: -50px;
        transform: translateX(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        top: 110vh;
        transform: translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.login-card {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.85);
    border: 3px solid #f28c38;
    border-radius: 30px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(242, 140, 56, 0.4), 
                0 0 100px rgba(242, 140, 56, 0.2),
                inset 0 0 50px rgba(242, 140, 56, 0.1);
    backdrop-filter: blur(10px);
    animation: cardEntrance 0.6s ease-out;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.guitar-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: guitarBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(247, 220, 111, 1));
}

@keyframes guitarBounce {
    0%, 100% {
        transform: translateY(0) rotate(-10deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.login-title {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.welcome-text {
    font-size: 1.2rem;
    color: #ffd89b;
    font-weight: 400;
    letter-spacing: 1px;
}

.game-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #f7dc6f, #f28c38, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(242, 140, 56, 0.5);
}

.login-subtitle {
    color: #ffd89b;
    font-style: italic;
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0.9;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    font-size: 1.5rem;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(247, 220, 111, 0.8));
}

.name-input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 4rem;
    font-size: 1.1rem;
    border: 2px solid #f28c38;
    border-radius: 50px;
    background: rgba(242, 140, 56, 0.1);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.name-input::placeholder {
    color: rgba(255, 216, 155, 0.6);
}

.name-input:focus {
    border-color: #f7dc6f;
    background: rgba(242, 140, 56, 0.2);
    box-shadow: 0 0 30px rgba(242, 140, 56, 0.5);
    transform: scale(1.02);
}

.name-preview {
    text-align: center;
    padding: 1rem;
    background: rgba(242, 140, 56, 0.15);
    border-radius: 15px;
    border: 1px solid rgba(242, 140, 56, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-label {
    font-size: 0.9rem;
    color: #ffd89b;
    opacity: 0.8;
}

.preview-name {
    font-size: 1.4rem;
    color: #f7dc6f;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(247, 220, 111, 0.8);
}

.enter-button {
    position: relative;
    padding: 1.3rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #f28c38, #f7dc6f, #f28c38);
    background-size: 200% 200%;
    color: #000;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(242, 140, 56, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.enter-button:not(:disabled):hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 40px rgba(242, 140, 56, 0.8);
    animation: buttonPulse 1s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(242, 140, 56, 0.8);
    }
    50% {
        box-shadow: 0 15px 50px rgba(247, 220, 111, 1);
    }
}

.enter-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.button-icon {
    font-size: 1.5rem;
}

.button-text {
    font-size: 1.1rem;
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.enter-button:not(:disabled):hover .button-shine {
    left: 100%;
}

.back-button {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.back-button:hover {
    border-color: #f7dc6f;
    background: rgba(247, 220, 111, 0.1);
    transform: translateX(-5px);
}

.back-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-button:hover .back-icon {
    transform: translateX(-5px);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(242, 140, 56, 0.3);
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.icon-item {
    font-size: 2rem;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(247, 220, 111, 0.8));
}

.icon-item:nth-child(2) {
    animation-delay: 0.5s;
}

.icon-item:nth-child(3) {
    animation-delay: 1s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.footer-text {
    color: #ffd89b;
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

.decorative-guitars {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.guitar {
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    filter: drop-shadow(0 0 30px rgba(247, 220, 111, 0.5));
}

.guitar-left {
    bottom: 10%;
    left: 5%;
    transform: rotate(-30deg);
    animation: guitarFloatLeft 6s ease-in-out infinite;
}

.guitar-right {
    top: 15%;
    right: 5%;
    transform: rotate(30deg);
    animation: guitarFloatRight 6s ease-in-out infinite;
}

@keyframes guitarFloatLeft {
    0%, 100% {
        transform: rotate(-30deg) translateY(0);
    }
    50% {
        transform: rotate(-25deg) translateY(-20px);
    }
}

@keyframes guitarFloatRight {
    0%, 100% {
        transform: rotate(30deg) translateY(0);
    }
    50% {
        transform: rotate(35deg) translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .guitar-icon {
        font-size: 4rem;
    }

    .game-title {
        font-size: 2rem;
    }

    .welcome-text {
        font-size: 1rem;
    }

    .name-input {
        font-size: 1rem;
        padding: 1rem 1rem 1rem 3.5rem;
    }

    .enter-button {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }

    .button-text {
        font-size: 1rem;
    }

    .decorative-guitars .guitar {
        font-size: 4rem;
    }
}

/* Animación de carga inicial */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-container {
    animation: fadeIn 0.5s ease-in;
}