/*=========================================================
=            Estilo mejorado para SIREMED            =
=========================================================*/
* {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #f8d7da;
    --secondary-color: #3498db;
    --secondary-dark: #2980b9;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #ecf0f1;
    --panel-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.2);
    --accent-color: #f39c12;
}

body {
    background: #c3cfe2;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    font-size: 16px;
    color: var(--text-color);
}

body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../public/img/Logo_principal.png') no-repeat center;
    background-size: 25%;
    opacity: 0.05;
    z-index: -1;
    animation: subtle-pulse 15s infinite alternate;
}

@keyframes subtle-pulse {
    0% {
        opacity: 0.03;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.05;
        transform: scale(1.05) rotate(1deg);
    }
    100% {
        opacity: 0.03;
        transform: scale(1) rotate(0deg);
    }
}

/* Partículas de fondo */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Contenedor principal */
#container.cls-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.cls-content {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel */
.cls-content-sm.panel {
    width: 100%;
    max-width: 500px;
}

.panel {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: perspective(1200px) rotateX(0deg);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), 
                box-shadow 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    background: var(--panel-bg);
    position: relative;
}

.panel:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18), 0 10px 20px rgba(0, 0, 0, 0.12);
    transform: perspective(1200px) rotateX(2deg) translateY(-8px);
}

.panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0.85;
}

.panel-body {
    padding: 45px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.panel-body::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--secondary-color) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    transform: translate(50%, -50%);
    animation: floating 12s infinite alternate;
}

.panel-body::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    transform: translate(-30%, 30%);
    animation: floating 10s infinite alternate-reverse;
}

@keyframes floating {
    0% {
        transform: translate(-30%, 30%) scale(1);
    }
    50% {
        transform: translate(-25%, 25%) scale(1.1);
    }
    100% {
        transform: translate(-30%, 30%) scale(1);
    }
}

/* Logo container */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.logo-img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s ease;
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
}

.logo-container::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 15px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%);
    border-radius: 50%;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    opacity: 0.5;
}

/* Textos y encabezados */
h1.h3 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 28px;
    position: relative;
    display: inline-block;
    font-family: 'IBM Plex Sans', sans-serif;
}

h1.h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 75px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    animation: widthExpand 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes widthExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 75px;
        opacity: 1;
    }
}

.pad-btm.text-bold {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 35px;
    animation: fadeIn 1s ease-out 0.4s forwards;
    opacity: 0;
    position: relative;
}

.pad-btm.text-bold::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    left: -15px;
    top: 0;
    background-color: var(--primary-light);
    border-radius: 3px;
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Botón */
.btn-danger {
    background-color: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 16px 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.25), 0 2px 5px rgba(231, 76, 60, 0.22);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out 0.7s forwards;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-danger i {
    transition: transform 0.3s ease;
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-danger:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.35), 0 6px 10px rgba(231, 76, 60, 0.25);
    background-color: var(--primary-dark);
}

.btn-danger:hover i {
    transform: translateX(-5px);
}

.btn-danger:hover::before {
    left: 100%;
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Efecto pulse para el botón */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Link Text */
.btn-link.text-bold.text-main {
    display: block;
    width: 100%;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    body {
        padding: 20px;
        font-size: 15px;
    }
    
    .panel-body {
        padding: 35px 25px;
    }
    
    h1.h3 {
        font-size: 24px;
    }
    
    .pad-btm.text-bold {
        font-size: 15px;
    }
    
    .btn-danger {
        padding: 14px 22px;
        font-size: 15px;
    }
    
    .logo-img {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .panel-body {
        padding: 30px 20px;
    }
    
    h1.h3 {
        font-size: 22px;
    }
    
    .pad-btm.text-bold {
        font-size: 14px;
    }
    
    .btn-danger {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .logo-img {
        max-width: 90px;
    }
}

/* Animación para la carga de la página */
@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cls-container {
    animation: pageLoad 0.8s cubic-bezier(0.26, 0.86, 0.44, 0.985) forwards;
}

/* Efecto para los elementos principales */
.animate__animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}


/*
 * Estilos adicionales para el efecto de ripple y animaciones
 * Estos estilos se pueden incluir en el archivo crearcuenta.css principal
 */

/* Efecto de ripple para botones */
.btn-danger {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
    z-index: 10;
}

.rippleEffect {
    animation: ripple 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ripple {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

/* Mejora en la animación de entrada para el botón */
.btn-danger {
    animation: btn-entrance 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes btn-entrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de brillo sutil en el botón */
.btn-danger::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 10%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0) 50%
    );
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-danger:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: rotate(30deg) translateX(-300%);
    }
    100% {
        transform: rotate(30deg) translateX(300%);
    }
}

/* Animación flotante para el logotipo */
.logo-img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Efecto de profundidad para el panel en hover */
.panel:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(255, 255, 255, 0) 50%, rgba(52, 152, 219, 0.05) 100%);
    border-radius: 16px;
    z-index: -1;
}

/* Animación de carga para el texto */
.text-bold {
    overflow: hidden;
    position: relative;
}