/* ==========================================================================
   LatinosPC Security - Passwords Stylesheet (passwords.css)
   Interactive password meter, biometric auth cards, and GRC PPP cryptographic grid
   ========================================================================== */

/* ── Interactive Password Strength Meter ── */
.pw-strength-demo {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 2.2rem;
    margin: 1.8rem 0 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.pw-strength-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #10b981 100%);
}

.pw-strength-demo label {
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    letter-spacing: -0.015em;
}

.pw-input-field {
    width: 100%;
    padding: 0.95rem 1.25rem;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    outline: none;
    color: #0f172a;
    transition: all 0.22s ease;
    box-sizing: border-box;
}

.pw-input-field:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.18), 0 4px 12px rgba(2, 132, 199, 0.1);
}

.pw-meter-bar {
    height: 8px;
    border-radius: 99px;
    background: #e2e8f0;
    margin: 1.1rem 0 0.5rem;
    overflow: hidden;
    position: relative;
}

.pw-meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.pw-meter-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.01em;
    margin-top: 0.25rem;
}

/* ── Authentication Methods Grid ── */
.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
    margin: 1.6rem 0 2.2rem;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem 1.3rem;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: all 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.auth-card:hover {
    transform: translateY(-5px);
    border-color: rgba(2, 132, 199, 0.4);
    box-shadow: 0 16px 36px rgba(15, 30, 60, 0.12);
}

.auth-card .auth-icon {
    font-size: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 18px;
    margin-bottom: 0.9rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.auth-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.45rem;
    letter-spacing: -0.015em;
}

.auth-card p {
    font-size: 0.84rem;
    color: #475569;
    margin: 0;
    line-height: 1.55;
}

/* ── Perfect Paper Passwords (PPP) Cryptographic Grid ── */
.ppp-box {
    background: #070d18;
    color: #38bdf8;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 18px;
    padding: 1.6rem 2rem;
    font-size: 0.95rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 0 20px rgba(56, 189, 248, 0.06);
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.85;
    white-space: pre;
    position: relative;
    width: fit-content;
}

.ppp-box .ppp-header {
    color: #cdd9e5;
    font-weight: 700;
    display: inline-block;
}