/* =========================================================================
   LOGIN MODAL (Husky)
   ========================================================================= */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(5, 25, 18, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.login-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.login-modal-panel {
    position: relative;
    background: #0a2b21;
    border: 1px solid rgba(198, 161, 83, 0.3);
    padding: 50px 40px 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 60px; /* Espacio para el perrito */
}

.login-modal-overlay.is-open .login-modal-panel {
    transform: translateY(0) scale(1);
}

.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 100;
}

.login-modal-close:hover {
    background: rgba(255,255,255,0.25);
}

/* --- PERRITO INTERACTIVO --- */
.dog {
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    z-index: 10;
}

.dog-head {
    width: 120px;
    height: 120px;
    background: #d8e2e9;
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
}

.ear {
    position: absolute;
    width: 40px;
    height: 50px;
    background: #2c3e50;
    border-radius: 50% 50% 0 0;
    top: -15px;
    z-index: -1;
    transition: transform 0.3s ease;
}

.ear.left { left: 10px; transform: rotate(-25deg); }
.ear.right { right: 10px; transform: rotate(25deg); }

.face {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 70px;
    background: #ffffff;
    border-radius: 40% 40% 50% 50%;
}

.eye {
    position: absolute;
    top: 15px;
    width: 18px;
    height: 18px;
    background: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.eye.left { left: 20px; }
.eye.right { right: 20px; }

.pupil {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    transition: transform 0.1s ease-out;
}

.nose {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 12px;
    background: #2c3e50;
    border-radius: 50%;
}

.mouth {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
    border-bottom: 2px solid #2c3e50;
    border-radius: 0 0 50px 50px;
    transition: all 0.3s ease;
}

.paw {
    position: absolute;
    bottom: -30px;
    width: 36px;
    height: 40px;
    background: #ffffff;
    border-radius: 50px;
    border: 2px solid #e1e8ed;
    z-index: 20;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.paw.left { left: 15px; }
.paw.right { right: 15px; }

.dog.hide-eyes .paw.left { transform: translateY(-70px) rotate(15deg); }
.dog.hide-eyes .paw.right { transform: translateY(-70px) rotate(-15deg); }
.dog.hide-eyes .ear.left { transform: rotate(-45deg) translateY(10px); }
.dog.hide-eyes .ear.right { transform: rotate(45deg) translateY(10px); }
.dog.peek .paw.right { transform: translateY(0); }
.dog.happy .mouth { height: 20px; border-bottom: 3px solid #2c3e50; background: #ff8a80; }
.dog.happy .pupil { transform: scale(1.5); }

/* --- FORMULARIO --- */
.login-modal-panel h2 { color: #fdfcfa; margin-bottom: 8px; font-size: 1.5rem; font-family: var(--display); }
.login-modal-panel p { color: #8b968e; margin-bottom: 24px; font-size: 0.85rem; font-family: var(--sans); }

.login-input-group { position: relative; margin-bottom: 16px; text-align: left; }
.login-input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(253, 252, 250, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fdfcfa;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--sans);
}

.login-input-group input:focus { border-color: #c6a153; background: rgba(253, 252, 250, 0.1); }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8b968e;
    cursor: pointer;
    font-size: 1.2rem;
}

.btn-login-submit {
    width: 100%;
    padding: 14px;
    background: #c6a153;
    color: #051912;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--sans);
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 161, 83, 0.3);
}
