* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.conteiner {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

h1 {
    color: #2d3748;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.exibicao-senha {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.exibicao-senha input {
    border: none;
    background: none;
    font-size: 1.1rem;
    width: 100%;
    padding: 0.5rem;
    outline: none;
}

.botao-copiar {
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.botao-copiar:hover {
    background: #3182ce;
}

.opcoes {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.opcao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f7fafc;
    border-radius: 5px;
}

.entrada-comprimento {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
}

.botao-gerar {
    width: 100%;
    padding: 1rem;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.botao-gerar:hover {
    background: #38a169;
}

.alternador {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.alternador input {
    opacity: 0;
    width: 0;
    height: 0;
}

.deslizador {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: .4s;
    border-radius: 34px;
}

.deslizador:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .deslizador {
    background-color: #48bb78;
}

input:checked + .deslizador:before {
    transform: translateX(26px);
}