/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Main UI Card with Soft Up/Down Floating */
.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
}

.container-float {
    animation: floatingCard 4s ease-in-out infinite;
}

@keyframes floatingCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

h2 {
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 22px;
}

.subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Input Fields */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 14px 70px 14px 16px;
    font-size: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #6366f1;
}

#toggleView {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6366f1;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

/* Strength Meter Graphic */
.meter-container {
    background-color: #e2e8f0;
    height: 6px;
    border-radius: 3px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 6px;
}

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

.strength-label {
    font-size: 14px;
    font-weight: bold;
    color: #64748b;
    text-align: right;
    margin-bottom: 20px;
}

/* Checklist Rules */
.checklist {
    list-style: none;
    text-align: left;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.checklist li {
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.invalid {
    color: #94a3b8;
}

.valid {
    color: #10b981;
    font-weight: 500;
}