@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    font-family: 'Inter', sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: #00f2fe;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
}

.box {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: box-shadow 0.3s;
}

.box:hover {
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.5);
}

.password-field {
    position: relative;
}

input[type="password"], input[type="text"] {
    width: 100%;
    padding: 12px 40px 12px 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: #1c2b36;
    color: white;
    box-shadow: inset 0 0 8px rgba(0, 242, 254, 0.2);
    outline: none;
}

input:focus {
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
    background: #223847;
}

.toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #00f2fe;
}

.feedback {
    margin-top: 15px;
    font-size: 1rem;
    text-align: left;
}

.breach-warning {
    color: #ff4d4d;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.6);
}

#breachCount {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #ffc107;
}

.strength {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

.progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: red;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    transition: width 0.4s, background 0.4s, box-shadow 0.4s;
}

.policy {
    text-align: left;
    margin-top: 20px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.policy li {
    margin: 5px 0;
}

.policy .icon {
    margin-right: 8px;
    color: #ff4d4d;
}

.policy .icon.good {
    color: #00ff6a;
}

.tips {
    margin-top: 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

footer {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #ccc;
    text-align: center;
}

@media (max-width: 500px) {
    .box {
        padding: 20px;
    }

    input[type="password"], input[type="text"] {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .toggle-eye {
        font-size: 1rem;
    }

    .feedback, .policy, .tips {
        font-size: 0.9rem;
    }
}
