/* Arquivo: frontend/senhas.css
   Extraído de criacao_senhas.html - mantém estilos gerais e componentes
*/

body {
    background-color: #09090b;
    color: #f4f4f5;
}

.bg-noise {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 50; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.bg-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    pointer-events: none; z-index: 0;
}

.glass-panel {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
    
.glass-card {
    background: linear-gradient(145deg, rgba(39, 39, 42, 0.4) 0%, rgba(24, 24, 27, 0.2) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.text-gradient {
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #0ea5e9, #8b5cf6);
}

.glow-blob {
    position: absolute; width: 600px; height: 600px;
    background: var(--tw-gradient-stops); filter: blur(120px);
    border-radius: 50%; opacity: 0.15;
    animation: pulse-slow 8s infinite alternate; z-index: 0; pointer-events: none;
}

.reveal {
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Custom Range Slider Styling */
input[type=range] {
    -webkit-appearance: none; width: 100%; background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 20px; width: 20px;
    border-radius: 50%; background: #0ea5e9; cursor: pointer;
    margin-top: -8px; box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
    transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px; cursor: pointer; background: rgba(255, 255, 255, 0.1); border-radius: 2px;
}
input[type=range]:focus { outline: none; }

/* Custom Checkbox */
.cyber-checkbox {
    appearance: none; background-color: rgba(255, 255, 255, 0.05);
    margin: 0; font: inherit; color: currentColor;
    width: 1.25em; height: 1.25em; border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25em; display: grid; place-content: center; cursor: pointer;
    transition: all 0.2s;
}
.cyber-checkbox::before {
    content: ""; width: 0.65em; height: 0.65em; transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #0ea5e9; background-color: #0ea5e9;
    transform-origin: center; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.cyber-checkbox:checked { border-color: #0ea5e9; background-color: rgba(14, 165, 233, 0.1); }
.cyber-checkbox:checked::before { transform: scale(1); }

/* Copied Toast */
#toast {
    position: fixed; bottom: 20px; right: 20px;
    transform: translateY(100px); opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
}
#toast.show { transform: translateY(0); opacity: 1; }

/* Small helper to replace inline animation-delay */
.glow-blob.delay-neg-3 { animation-delay: -3s; }

/* Keep this at the end so it's easy to tweak only layout-specific parts */
.password-output-smaller {
    /* class para uso direto se precisar ajustar tamanho do output */
}
