/* Título */
.title-container {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 2rem;
}

.app-title {
    font-size: 20px;
    font-weight: 500;
    color: #343a40;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #6c757d;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 0.3rem;
}

/* Iniciar sesión */
.login-form-pro {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

input:focus {
    outline: none;
    box-shadow: none;
    border-color: inherit;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.3s ease;
}

    .input-group-custom:focus-within {
        border-color: #007bff;
        box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
    }

    .input-group-custom .icon {
        width: 30px;
        height: 30px;
        margin-right: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .input-group-custom .icon img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

    .input-group-custom .form-control {
        border: none;
        outline: none;
        box-shadow: none;
        width: 100%;
        font-size: 1rem;
        background-color: transparent;
        font-size: 18px;
        outline: none !important;
        box-shadow: none !important;
        border-color: inherit !important;
    }

        .input-group-custom .form-control::placeholder {
            color: #adb5bd;
        }

.form-links a {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

    .form-links a:hover {
        color: #dc3545;
        text-decoration: underline;
    }

.btn-custom {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

    .btn-custom:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    }

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-radius: 10px;
    font-size: 15px;
}

/* Pantalla de presentación inicial */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeOut 2s ease-in-out 2s forwards;
}

    .intro-screen img {
        max-width: 300px;
        animation: zoomIn 1.5s ease-out;
    }

@keyframes zoomIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.main-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    animation: slideIn 1s ease-in-out 3s forwards;
    opacity: 0;
}

@keyframes slideIn {
    to {
        opacity: 1;
    }
}

.left-panel {
    flex: 1;
    background-color: #ffffff;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

.right-panel {
    flex: 1;
    background: linear-gradient(to right, #b70404, #ff4949);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fondo del modal de carga */
.loading-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

/* Contenedor de la imagen de carga */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-text {
    color: white;
    font-size: 13px !important;
    margin-top: 10px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.loading-image {
    width: 280px;
    height: 150px;
    animation: blink 1s infinite;
}

/* Animación de titileo */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Responsividad */
@media (max-width: 768px) {
    .title-container {
        margin-bottom: 1rem;
    }

    .app-title {
        font-size: 18px;
    }

    .app-subtitle {
        font-size: 16px;
    }

    .login-form-pro {
        padding: 1.5rem;
    }

    .input-group-custom {
        flex-direction: column;
        padding: 0.5rem;
    }

        .input-group-custom .form-control {
            font-size: 16px;
        }

    .btn-custom {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .left-panel {
        flex: 1;
        background-color: #ffffff;
        padding: 4rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s ease;
    }

    .right-panel {
        display: none;
    }

    .main-container {
        flex-direction: column;
        height: auto;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 16px;
    }

    .app-subtitle {
        font-size: 14px;
    }

    .login-form-pro {
        padding: 1rem;
    }

    .input-group-custom {
        padding: 0.3rem;
    }

        .input-group-custom .form-control {
            font-size: 14px;
        }

    .btn-custom {
        padding: 0.6rem 1rem;
    }

    .intro-screen img {
        max-width: 250px;
    }
}
