body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background: #020617;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative;
}

.icon-lock {
    display: inline-block;
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 10px;
}

.icon-lock svg {
    width: 100%;
    height: 100%;
}

a {
    color: #94a3b8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 {
    text-align: center;
}

.resum {
    color: #94a3b8;
}

.password-wrapper {
    position: relative;
    margin-top: 1rem;
}

input {
    width: 100%;
    padding: 0.8rem;
    padding-right: 3rem;
    box-sizing: border-box;
    border-radius: 6px;
    border: none;
    font-size: 2rem;
    color: #325391;
}

#toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

#toggle-password:hover {
    filter: grayscale(0%);
}

#results {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.rules-column {
    flex: 1;
}

.rules-column h3 {
    font-size: 1.2rem;
    text-align: center;
    color: #94a3b8;
    border-bottom: 2px solid #334155;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

#results p {
    margin: 0.3rem 0;
}

#strength {
    margin-top: 1rem;
    font-weight: bold;
    background-color: #414141;
    height: 5px;
    border-radius: 1px;
    overflow: hidden;
}

.ok { color: #325391; }
.bad { color: #c24141; }

#strength .bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    input {
        font-size: 1.2rem;
        padding: 1rem;
        padding-right: 3rem;
    }

    #toggle-password {
        font-size: 1.5rem;
        right: 10px;
    }

    #results {
        flex-direction: column;
    }
}

.lang-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

#language-selector {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 0.3rem;
    border-radius: 4px;
    cursor: pointer;
}