﻿.mud-main-content {
    padding: 1rem;
    min-height: 100vh;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Card principal */
.login-card {
    display: flex;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
}

/* Sección izquierda - Logo */
.login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7ed576 0%, #5fb854 100%);
    padding: 3rem;
    position: relative;
}

.logo-container {
    text-align: center;
    color: white;
}

.logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: white;
    animation: fadeInScale 0.6s ease-out;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Divisor */
.divider {
    width: 1px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.1) 80%, rgba(0, 0, 0, 0) 100% );
}

/* Sección derecha - Formulario */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
}

.form-container {
    width: 100%;
    max-width: 400px;
    animation: fadeInRight 0.6s ease-out;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: #718096;
    margin: 0 0 2rem 0;
    font-weight: 400;
}

/* Alerta de error */
.alert-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 8px;
    color: #c53030;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid #74cc6b;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
    background: #e6ffed;
    color: #0f5132;
}

.alert-icon {
    flex-shrink: 0;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #fff;
    color: #2d3748;
}

    .form-input:focus {
        outline: none;
        border-color: #5fb854;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .form-input::placeholder {
        color: #a0aec0;
    }

.validation-message {
    display: block;
    color: #e53e3e;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

/* Botón de submit */
.btn-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #7ed576 0%, #5fb854 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    letter-spacing: 0.025em;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

/* Footer del formulario */
.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .link:hover {
        color: #764ba2;
        text-decoration: underline;
    }

/* Animaciones */
@@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mud-main-content {
        padding: 1rem; /* Reducir padding exterior */
    }

    .login-card {
        flex-direction: column; /* Esto pone el Left arriba y Right abajo */
        min-height: auto; /* Quita la altura forzada de escritorio */
        height: auto;
        max-width: 100%;
    }

    /* Ajustes Sección Izquierda (Arriba) */
    .login-left {
        width: 100%; /* Forzar ancho completo */
        flex: 0 0 auto; /* No estirarse, ocupar solo lo necesario */
        padding: 2rem 1rem;
        min-height: auto; /* Permitir que se ajuste al contenido */
    }

    /* Ajustes Divisor (Horizontal) */
    .divider {
        width: 100%;
        height: 1px;
        /* Cambiar gradiente de vertical a horizontal */
        background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.1) 80%, rgba(0, 0, 0, 0) 100%);
    }

    /* Ajustes Sección Derecha (Abajo) */
    .login-right {
        width: 100%; /* Forzar ancho completo */
        flex: 1; /* Ocupar el resto del espacio si sobra */
        padding: 2rem 1.5rem;
    }

    /* Ajustes de Texto */
    .form-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .form-subtitle {
        text-align: center;
    }

    .form-container {
        /* Asegurar que el formulario no se quede pegado a la izquierda */
        margin: 0 auto;
    }

    .brand-name {
        font-size: 1.5rem;
    }
}

/* Ajuste extra para móviles muy pequeños */
@media (max-width: 480px) {
    .login-left {
        padding: 1.5rem 1rem;
    }

    .login-right {
        padding: 1.5rem 1rem;
    }
}
