body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 20px 30px;
    width: 320px;
    text-align: center;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: scale(1.05);
}

h1 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

input[type="password"], input[type="text"], input[type="email"] {
    width: calc(100% - 50px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 1em;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input[type="password"]:focus, input[type="text"]:focus, input[type="email"]:focus {
    border-color: #6a11cb;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

#togglePassword {
    width: 50px;
    padding: 10px;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 5px 5px 0;
    background: #007bff;
    color: white;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

#togglePassword:hover {
    background: #0056b3;
}

.check-btn {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
}

.check-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.reset-btn {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
}

.reset-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

#criteria {
    text-align: left;
    margin-top: 20px;
    font-size: 0.9em;
}

#criteria p {
    margin: 5px 0;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

#criteria p::before {
    content: '•';
    font-size: 1.2em;
    margin-right: 8px;
}

.valid {
    color: green;
    background: rgba(144, 238, 144, 0.2);
}

.invalid {
    color: red;
    background: rgba(255, 192, 203, 0.2);
}

.email-section {
    margin-top: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
}

.checkbox-container input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.checkbox-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: background 0.3s ease, border 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-checkmark {
    background: #007bff;
    border-color: #007bff;
}

.checkbox-checkmark::after {
    content: '';
    position: absolute;
    display: none;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-checkmark::after {
    display: block;
    left: 7px;
    top: 3px;
    width: 7px;
    height: 13px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-description {
    margin-left: 10px;
    font-size: 1em;
    color: #333;
}

#result {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.unsafe {
    color: red;
}

.safe {
    color: green;
}
