* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0a0a0a;
    padding: 20px;
}
.container {
    width: 100%;
    max-width: 420px;
}
.card {
    background: #141414;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #222;
}
h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 28px;
}
.row {
    display: flex;
    gap: 12px;
}
.row .input-group {
    flex: 1;
}
.input-group {
    margin-bottom: 18px;
}
label {
    display: block;
    color: #888;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 8px;
}
input {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    outline: none;
    color: #fff;
    transition: border-color 0.2s ease;
}
input:focus {
    border-color: #f97316;
}
input::placeholder {
    color: #444;
}
.password-wrapper {
    position: relative;
}
.toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}
.toggle-btn:hover {
    opacity: 1;
}
.strength-meter {
    height: 3px;
    background-color: #222;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}
.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.strength-text {
    font-size: 0.75rem;
    color: #444;
    margin-bottom: 16px;
}
.requirements {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.requirements li {
    font-size: 0.7rem;
    color: #444;
    padding: 6px 10px;
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #222;
    transition: all 0.2s ease;
}
.requirements li.valid {
    color: #22c55e;
    border-color: #22c55233;
    background: #22c55211;
}
.strength-bar.weak {
    background-color: #ef4444;
}
.strength-bar.fair {
    background-color: #eab308;
}
.strength-bar.good {
    background-color: #f97316;
}
.strength-bar.strong {
    background-color: #22c55e;
}
.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    background-color: #f97316;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.submit-btn:hover {
    background: #ea580c;
}
.footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: #555;
}
.footer a {
    color: #f97316;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}
@media (max-width: 480px) {
    .card {
        padding: 28px 20px;
    }
    .row {
        flex-direction: column;
        gap: 0;
    }
}
