* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Text Selection */
::selection {
    background: #ffffff;
    color: #000000;
}

::-moz-selection {
    background: #ffffff;
    color: #000000;
}

body {
    background: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    cursor: none;
    position: relative;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-outline {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: difference;
}

/* Breathing Overlay */
.breathing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Floating Particles */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 4rem;
}

/* Password Display */
.password-display {
    text-align: center;
    opacity: 0;
    animation: fadeInScale 1s ease-out 0.2s forwards;
}

.password-text {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    word-break: break-all;
    max-width: 90vw;
    line-height: 1.2;
    min-height: 1.2em;
    margin-bottom: 1rem;
}

.password-length {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 0.1em;
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    animation: fadeInScale 1s ease-out 0.6s forwards;
}

/* Slider Section */
.slider-section {
    text-align: center;
}

.slider-label {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.slider-value {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: clamp(250px, 50vw, 500px);
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffffff;
    cursor: none;
    border-radius: 50%;
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffffff;
    cursor: none;
    border-radius: 50%;
    border: none;
    transition: transform 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInScale 1s ease-out 1s forwards;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: none;
    position: relative;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    background: #ffffff;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #000000;
}

.checkbox-label {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.8;
    cursor: none;
    user-select: none;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeInScale 1s ease-out 1.4s forwards;
}

button {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.2rem 3rem;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    cursor: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

button:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Tooltip */
.tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #ffffff;
    color: #000000;
    padding: 1.5rem 3rem;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}