/* login_styles.css – Fondo claro institucional + elementos visibles */

/* ========== MODO CLARO (default: degradado celeste-rosa-blanco) ========== */
body {
    background: linear-gradient(135deg, #e5f6ff 0%, #ffffff 50%, #ffebfa 100%);
    position: relative;
    overflow-x: hidden;
    margin: 0;
    font-family: 'Arial Nova', Arial, sans-serif;
    color: #1f2937;
}

/* Manchas decorativas de luz (celeste y rosa) – permanecen igual */
body::before {
    content: '';
    position: fixed;
    top: -15%;
    left: 5%;
    width: 65%;
    height: 75%;
    background: radial-gradient(circle, rgba(197, 241, 255, 0.8) 0%, transparent 70%);
    filter: blur(75px);
    z-index: 0;
    pointer-events: none;
    animation: floatSmoke 8s infinite alternate ease-in-out;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: 0%;
    width: 70%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 204, 249, 0.8) 0%, transparent 70%);
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
    animation: floatSmoke 7s infinite alternate-reverse ease-in-out;
}

@keyframes floatSmoke {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, -20px) scale(1.1); }
}

/* ========== ELEMENTOS DECORATIVOS FLOTANTES (ahora visibles en claro) ========== */
.decorative-element {
    position: fixed;
    /* Rosa pálido semitransparente, visible sobre el fondo claro */
    color: rgba(255, 105, 180, 0.15);
    font-size: 5rem;
    z-index: 0;
    pointer-events: none;
}

.deco-1 { top: 20%; left: 3%; font-size: 6rem; }
.deco-2 { bottom: 1%; right: 3%; transform: rotate(18deg); font-size: 11rem; }
.deco-3 { top: 23%; right: 16%; font-size: 8rem; }
.deco-4 { bottom: 20%; left: 17%; font-size: 9rem; transform: rotate(-15deg); }

/* ========== TARJETA DEL FORMULARIO ========== */
.login-card-wrapper {
    position: relative;
    z-index: 10;
}

.bg-white {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px);
    border-top: 4px solid #ff3399;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #1f2937;
}

.bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

/* Detalles decorativos (puntos y esquina) */
.bg-white::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(#ff3399 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.25;
    border-radius: 50%;
    pointer-events: none;
}

.bg-white::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    border-left: 3px solid #ff3399;
    border-bottom: 3px solid #ff3399;
    opacity: 0.4;
    border-radius: 0 0 0 12px;
    pointer-events: none;
}

/* Inputs y botones */
input, select, textarea {
    transition: all 0.2s ease;
}

input:focus {
    border-color: #ff3399 !important;
    box-shadow: 0 0 0 3px rgba(255, 51, 153, 0.2) !important;
    transform: scale(1.01);
}

button[type="submit"] {
    background: linear-gradient(135deg, #ff3399, #cc0066) !important;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 51, 153, 0.4);
}

/* Mensajes de error y modal */
#error-message:not(.hidden) {
    display: block;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

#reset-modal .bg-white {
    animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ========== MODO OSCURO MANUAL (se mantiene idéntico al original) ========== */
body.dark-theme {
    background: linear-gradient(135deg, #2D1B36, #1E1A3A) !important;
    color: #F3F4F6;
}

body.dark-theme::before,
body.dark-theme::after {
    display: none;
}

body.dark-theme .decorative-element {
    color: rgba(196, 116, 232, 0.15);
}

body.dark-theme .bg-white {
    background-color: rgba(30, 30, 47, 0.95) !important;
    backdrop-filter: blur(10px);
    border-top: 4px solid #c474e8;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    color: #F3F4F6;
}

body.dark-theme .bg-white::after {
    background-image: radial-gradient(#c474e8 2px, transparent 2px);
    opacity: 0.2;
}

body.dark-theme .bg-white::before {
    border-color: #c474e8;
    opacity: 0.3;
}

body.dark-theme .text-gray-800,
body.dark-theme .text-gray-700 {
    color: #F3F4F6 !important;
}
body.dark-theme .text-gray-600,
body.dark-theme .text-gray-500 {
    color: #D1D5DB !important;
}

body.dark-theme input,
body.dark-theme select {
    background-color: #1e1e2f;
    border-color: #4B5563;
    color: #F3F4F6;
}

body.dark-theme input:focus {
    border-color: #c474e8 !important;
    box-shadow: 0 0 0 3px rgba(196, 116, 232, 0.25) !important;
}

body.dark-theme button[type="submit"] {
    background: linear-gradient(135deg, #A506AD, #0362CF) !important;
}

body.dark-theme button[type="submit"]:hover:not(:disabled) {
    box-shadow: 0 10px 25px rgba(165, 6, 173, 0.5);
}

body.dark-theme #reset-modal .bg-white {
    background-color: #2d2d44 !important;
    color: #F3F4F6;
}

body.dark-theme a.text-pink-600 {
    color: #c474e8 !important;
}