@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

html, body, .font-sans {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: #020617; /* Slate 950 ultra oscuro */
    background-image: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
}

.login-card {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
    border-top: 5px solid #10b981; /* Verde esmeralda premium */
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 35px 80px -20px rgba(16, 185, 129, 0.12), 0 25px 50px -25px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   PASSWORD TOGGLE BUTTON STYLING (FALLBACK)
   ========================================================================== */
.relative {
    position: relative !important;
}

.relative input[type="password"],
.relative input[type="text"] {
    padding-right: 40px !important;
}

button[onclick*="togglePassword"] {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: #9ca3af !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
}

button[onclick*="togglePassword"]:hover {
    color: #4b5563 !important;
}

.hidden {
    display: none !important;
}

/* Custom styling for RynkUI.showModal overlay when Tailwind is not present */
#rynk-dynamic-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    background-color: rgba(15, 23, 42, 0.6) !important; /* Slate 900 tint */
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    transition: opacity 0.3s ease !important;
}

#rynk-dynamic-modal-card {
    background-color: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 24px !important;
    padding: 2rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    max-width: 400px !important;
    width: 100% !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    font-family: 'Outfit', sans-serif !important;
}

#rynk-dynamic-modal-card h3 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.5rem !important;
}

#rynk-dynamic-modal-card p {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
}

/* Icon circular background and colors */
#rynk-dynamic-modal-card .bg-blue-50 { background-color: #eff6ff !important; }
#rynk-dynamic-modal-card .text-blue-500 { color: #3b82f6 !important; }
#rynk-dynamic-modal-card .bg-green-50 { background-color: #f0fdf4 !important; }
#rynk-dynamic-modal-card .text-green-500 { color: #22c55e !important; }
#rynk-dynamic-modal-card .bg-amber-50 { background-color: #fffbeb !important; }
#rynk-dynamic-modal-card .text-amber-500 { color: #f59e0b !important; }
#rynk-dynamic-modal-card .bg-red-50 { background-color: #fef2f2 !important; }
#rynk-dynamic-modal-card .text-red-500 { color: #ef4444 !important; }

/* Buttons styling inside modal */
#rynk-dynamic-modal-card button {
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

#rynk-dynamic-modal-card .bg-red-600 {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}
#rynk-dynamic-modal-card .bg-red-600:hover {
    background-color: #b91c1c !important;
}

#rynk-dynamic-modal-card .bg-green-600 {
    background-color: #16a34a !important;
    color: #ffffff !important;
}
#rynk-dynamic-modal-card .bg-green-600:hover {
    background-color: #15803d !important;
}

#rynk-dynamic-modal-card .bg-amber-600 {
    background-color: #d97706 !important;
    color: #ffffff !important;
}
#rynk-dynamic-modal-card .bg-amber-600:hover {
    background-color: #b45309 !important;
}

#rynk-dynamic-modal-card .bg-gray-900 {
    background-color: #0f172a !important;
    color: #ffffff !important;
}
#rynk-dynamic-modal-card .bg-gray-900:hover {
    background-color: #1e293b !important;
}

/* Transitions classes */
.opacity-0 { opacity: 0 !important; }
.opacity-100 { opacity: 1 !important; }
.scale-90 { transform: scale(0.9) !important; }
.scale-100 { transform: scale(1) !important; }