    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

    :root {
        --primary:  #8a2be2;
        --secondary: #ad4d4d;
        --google-red: #DB4437;
        --google-blue: #4285F4;
        --google-green: #0F9D58;
        --google-yellow: #F4B400;
    }
    .layout-content {
      display: none;
    }
    /* Contenedor principal de alertas */
    .flash-messages {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000;
        width: 100%;
        max-width: 400px;
    }

    /* Estilos base de la alerta */
    .alert {
        position: relative;
        padding: 15px 20px;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        color: white;
        display: flex;
        align-items: center;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    /* Alertas que se están cerrando */
    .alert.hide {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
        overflow: hidden;
    }

    /* Iconos */
    .alert i {
        margin-right: 12px;
        font-size: 1.2rem;
    }

    /* Botón de cerrar */
    .alert .close-btn {
        margin-left: auto;
        background: none;
        border: none;
        color: inherit;
        font-size: 1.2rem;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.2s;
    }

    .alert .close-btn:hover {
        opacity: 1;
    }

    /* Colores según categoría */
    .alert-success {
        background-color: #28a745;
        border-left: 5px solid #218838;
    }

    .alert-danger {
        background-color: #dc3545;
        border-left: 5px solid #c82333;
    }

    .alert-warning {
        background-color: #ffc107;
        border-left: 5px solid #e0a800;
        color: #212529;
    }

    .alert-info {
        background-color: #17a2b8;
        border-left: 5px solid #138496;
    }
    /* Contenedor principal que asegura el centrado vertical y horizontal */
    .auth-main-container {
        font-family: 'Poppins', sans-serif;
        min-height: 85vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        margin: 0;
        box-sizing: border-box;
    }

    /* Contenedor del formulario con ancho adaptable */
    .auth-form-container {
        width: 100%;
        max-width: 450px; /* Ancho para móvil */
        margin: auto;
    }

    /* Tarjeta del formulario */
    .auth-card {
        background: white;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        overflow: hidden;
        transition: all 0.3s ease;
    }
    .google-icon {
      font-size: 24px;
      background: linear-gradient(45deg, #4285F4 25%, #34A853 25%, #FBBC05 50%, #EA4335 75%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* Estilos para el encabezado */
    .auth-header {
        text-align: center;
        padding: 30px 20px;
        background: linear-gradient(45deg, var(--primary), var(--secondary));
        color: white;
    }

    .auth-header h2 {
        margin-bottom: 10px;
        font-weight: 600;
    }

    .auth-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
        display: inline-block;
        background: rgba(255,255,255,0.2);
        width: 80px;
        height: 80px;
        line-height: 80px;
        border-radius: 50%;
    }

    /* Estilos para el cuerpo del formulario */
    .auth-body {
        padding: 30px;
    }

    /* Estilos para los grupos de formulario */
    .form-group {
        position: relative;
        margin-bottom: 25px;
    }

    .form-control {
        border-radius: 50px;
        padding: 15px 20px 15px 50px;
        height: auto;
        border: 2px solid #e9ecef;
        transition: all 0.3s;
        width: 100%;
        box-sizing: border-box;
    }

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }

    .input-icon {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary);
        font-size: 1.2rem;
    }

    /* Estilos para los botones */
    .btn-auth {
        border-radius: 50px;
        padding: 12px;
        font-weight: 600;
        width: 100%;
        border: none;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 20px 0;
        cursor: pointer;
    }

    .btn-auth i {
        margin-right: 10px;
        font-size: 1.2rem;
    }

    .btn-login {
        background: linear-gradient(45deg, var(--primary), var(--secondary));
        color: white;
    }
    .btn-register {
        background: linear-gradient(45deg, var(--primary), var(--secondary));
        color: white;
    }
    .btn-google {
        background: white;
        color: #555;
        border: 1px solid #ddd;
    }

    .btn-google:hover {
        background: #f8f9fa;
    }

    .google-icon {
        color: var(--google-red);
        margin-right: 10px;
    }
    /* Contraseña toggle*/
    .password-group {
        position: relative;
    }

    .password-toggle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #667eea;
        z-index: 10;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .eye-icon {
        position: relative;
        right: 0;
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    .fas.fa-eye.eye-icon {
      color: var(--primary); /* azul por ejemplo */
    }
    .password-toggle:hover .eye-icon {
        color: #764ba2;
    }

    /* Ajuste para alinear con el input */
    .form-control {
        padding-right: 45px !important; /* Espacio para el icono */
    }

    /* Divisor estético */
    .divider {
        display: flex;
        align-items: center;
        margin: 25px 0;
        color: #999;
    }

    .divider::before, .divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #ddd;
    }

    .divider::before {
        margin-right: 10px;
    }
    .divider::after {
        margin-left: 10px;
    }

    /* Estilos específicos para recuperación */
    .forgot-instructions {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 20px;
        font-size: 0.9rem;
        color: #666;
    }

    .forgot-success {
        color: var(--google-green);
        text-align: center;
        margin: 15px 0;
        font-weight: 500;
        display: none;
    }

    .auth-footer {
        text-align: center;
        margin-top: 20px;
        font-size: 0.9rem;
        color: #666;
    }

    .auth-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
    }

    .auth-footer a:hover {
        text-decoration: underline;
    }

    /* Media queries para responsividad */
    @media (min-width: 768px) {
        .auth-form-container {
            max-width: 500px; /* Más ancho en tablets */
        }
    }

    @media (min-width: 992px) {
        .auth-form-container {
            max-width: 550px; /* Más ancho en desktop */
        }

        .auth-body {
            padding: 40px;
        }
    }

    @media (max-width: 576px) {
        .auth-main-container {
            padding: 15px;
        }
        .flash-messages {
            top: 10px;
            right: 10px;
            left: 10px;
            max-width: none;
        }

        .alert {
            padding: 12px 15px;
        }

        .auth-card {
            border-radius: 15px;
        }

        .auth-icon {
            width: 60px;
            height: 60px;
            line-height: 60px;
            font-size: 1.8rem;
        }

        .auth-body {
            padding: 25px;
        }
    }
    @keyframes slideIn {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    .alert.new {
        animation: slideIn 0.3s ease forwards;
    }