/* ============================================================================
   LOGIN PAGE
   ============================================================================ */

.login-page {
    background: linear-gradient(135deg, #ffd6e8, #ffc0d9, #ffb3d1);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 100px; /* Espacio para el footer */
    position: relative;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10; /* Por encima del footer */
}

.login-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 22px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.15);
    text-align: center;
    animation: fadeIn 0.6s ease;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-img {
    width: 180px;
    height: auto;
    margin-bottom: 0.5rem;
}

.login-title {
    font-size: 1.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    color: #333;
    font-weight: 600;
}

.subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.input-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    color: #444;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.875rem;
    margin-top: 0.25rem;
    border-radius: 10px;
    border: 1px solid #ffc0d9;
    background: #fff0f5;
    font-size: 0.9375rem;
    transition: 0.2s;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #ff9ec4;
    box-shadow: 0px 0px 5px rgba(255, 158, 196, 0.5);
}

.login-btn {
    width: 100%;
    background: #ff9ec4;
    color: white;
    padding: 0.875rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: 0.2s;
    font-weight: 600;
    font-family: inherit;
}

.login-btn:hover {
    background: #ff7ba8;
}

.login-options {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-text {
    color: #ff9ec4;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s;
}

.link-text:hover {
    color: #ff7ba8;
    text-decoration: underline;
}

.btn-register {
    width: 100%;
    background: transparent;
    color: #ff9ec4;
    padding: 0.875rem;
    border-radius: 10px;
    border: 2px solid #ff9ec4;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-family: inherit;
}

.btn-register:hover {
    background: #ff9ec4;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.forgot-step {
    display: none;
}

.forgot-step.active {
    display: block;
}

.success-message {
    text-align: center;
    padding: 1rem 0;
}

.success-message h3 {
    color: #10b981;
    margin-bottom: 1rem;
}

.info-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 22px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

