/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.left-section {
    flex: 0 0 55%;
    background-image: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.left-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    background-color: white;
}

.login-container {
    width: 93%;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in-out;
}

.safe-zone {
    background-color: rgb(230 250 236);
    color: #1fc012;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 4px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.logo {
    height: 77px;
    width: auto;
    object-fit: contain;
}

.brand-separator {
    height: 40px;
    width: 1px;
    background-color: #ddd;
    margin: 0 15px;
}

.brand-name {
    font-size: 20px;
    font-weight: 400;
    color: #333;
}

.welcome-text {
    font-size: 18px;
    color: #1fc012;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.welcome-text strong {
    font-size: 22px;
    color: #1fc012;
    font-weight: 700;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 30%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

.toggle-password:hover {
    color: #333;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #1c34ae;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}

.forgot-password {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    font-size: 14px;
}

.forgot-password-text {
    color: #555;
}

.recover-link {
    color: #1c34ae;
    text-decoration: none;
    margin-left: 5px;
    font-weight: 600;
    transition: all 0.2s;
}

.recover-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.mobile-slogan {
    display: none;
    text-align: center;
    margin-top: 30px;
    color: #4361ee;
    font-weight: 600;
    font-size: 16px;
    padding: 10px;
    border-top: 1px solid #eee;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* VersiÃ³n mÃ³vil optimizada */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 10px;
    }
    
    .left-section {
        display: none;
    }
    
    .right-section {
        flex: 1;
        padding: 20px;
        width: 100%;
        min-height: auto;
        justify-content: flex-start;
        padding-top: 5vh;
    }
    
    .login-container {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        animation: none;
    }
    
    .logo-container {
        margin-bottom: 25px;
    }
    
    .logo {
        height: 50px;
    }
    
    .brand-separator {
        height: 30px;
        margin: 0 10px;
    }
    
    .brand-name {
        font-size: 18px;
    }
    
    .welcome-text {
        margin-bottom: 30px;
        font-size: 16px;
    }
    
    .welcome-text strong {
        font-size: 19px;
    }
    
    .form-group input {
        padding: 12px 15px;
    }
    
    .login-btn {
        padding: 12px;
    }
    
    .safe-zone {
        font-size: 13px;
        padding: 10px;
        margin-bottom: 20px;
    }
    
    /* Mostrar el slogan solo en mÃ³vil */
    .mobile-slogan {
        display: block;
    }
}

@media (max-width: 480px) {
    body, .right-section {
        padding-top: 5px;
    }
    
    .right-section {
        padding: 15px;
    }
    
    .login-container {
        padding: 15px;
    }
    
    .logo {
        height: 45px;
    }
    
    .brand-name {
        font-size: 16px;
    }
    
    .welcome-text {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .welcome-text strong {
        font-size: 17px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .mobile-slogan {
        font-size: 15px;
        margin-top: 25px;
        padding: 55px 15px 55px 15px;
        background: #f6f6f9;
        color: #323432;
    }
}

/* Estilo adicional para mensajes de error */
.error {
    color: #fe0000;
    text-align: center;
    padding: 0px 0px 12px 0px;
}
        #contenedor-principal {
            text-align: center;
            max-width: 100%;
            padding: 30px;
            height: 100vh;
            display: flex;
            align-items: center;
            background: #00000063;
        }
        
        #frase {
            font-size: 1.8rem;
            line-height: 1.5;
            margin-bottom: 20px;
            color: #fff;
            font-weight: 700;
        }
        
        #autor {
            font-style: italic;
            font-size: 1.2rem;
            color: #fff;
        }
        
        button {
            margin-top: 20px;
            padding: 10px 20px;
            font-size: 1rem;
            background-color: #2c3e50;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        button:hover {
            background-color: #1a252f;
        }

    /* Animaciones CSS */
    .animate-fade-in {
        animation: fadeIn 1s ease-in-out;
        opacity: 0;
        animation-fill-mode: forwards;
    }
    
    .animate-slide-in {
        animation: slideIn 0.8s ease-out;
        transform: translateY(20px);
        opacity: 0;
        animation-fill-mode: forwards;
    }
    
    .animate-bounce {
        animation: bounce 2s infinite;
    }
    
    .animate-pulse {
        animation: pulse 2s infinite;
    }
    
    .animate-shake {
        animation: shake 0.5s;
    }
    
    .animate-grow {
        animation: grow 0.5s ease-out;
        transform-origin: left;
    }
    
    .animate-typing {
        animation: typing 1s steps(20, end), blink-caret 0.5s step-end infinite;
        white-space: nowrap;
        overflow: hidden;
        border-right: 2px solid;
    }
    
    .animate-color-change {
        animation: colorChange 5s infinite alternate;
    }
    
    .animate-float {
        animation: floatUp 0.5s ease-out;
        transform: translateY(20px);
        opacity: 0;
        animation-fill-mode: forwards;
    }
    
    .animate-form {
        animation: formAppear 0.5s ease-out;
    }
    
    .animate-input-focus:focus {
        animation: inputFocus 0.3s ease-out;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }
    
    .animate-pulse-hover:hover {
        animation: pulse 1s infinite;
    }
    
    .animate-underline {
        position: relative;
    }
    
    .animate-underline:after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: currentColor;
        transition: width 0.3s ease;
    }
    
    .animate-underline:hover:after {
        width: 100%;
    }
    
    /* Definici¨®n de keyframes */
    @keyframes fadeIn {
        to { opacity: 1; }
    }
    
    @keyframes slideIn {
        to { transform: translateY(0); opacity: 1; }
    }
    
    @keyframes bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }
    
    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        20%, 60% { transform: translateX(-5px); }
        40%, 80% { transform: translateX(5px); }
    }
    
    @keyframes grow {
        from { transform: scaleX(0); }
        to { transform: scaleX(1); }
    }
    
    @keyframes typing {
        from { width: 0 }
        to { width: 100% }
    }
    
    @keyframes blink-caret {
        from, to { border-color: transparent }
        50% { border-color: currentColor; }
    }
    
    @keyframes colorChange {
        0% { color: inherit; }
        50% { color: #007bff; }
        100% { color: #0056b3; }
    }
    
    @keyframes floatUp {
        to { transform: translateY(0); opacity: 1; }
    }
    
    @keyframes formAppear {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }
    
    @keyframes inputFocus {
        from { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
        to { box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); }
    }