/* ============================================
   ESTILOS PARA MEDIDOR DE FORÇA DE SENHA
   ============================================ */

.password-strength-container {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d32f2f, #ff6f00, #f57f17, #558b2f, #2e7d32);
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 10px;
}

.strength-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.strength-level {
    font-weight: 600;
    font-size: 0.95rem;
}

.strength-feedback {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.strength-feedback div {
    margin: 0.2rem 0;
}

.strength-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.requirement.ok {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.requirement-icon {
    font-size: 0.9rem;
    min-width: 1rem;
}

.requirement-text {
    flex: 1;
}

/* Modo Claro */
body.light-mode .password-strength-container {
    background: rgba(0, 102, 204, 0.05);
    border-color: rgba(0, 102, 204, 0.2);
}

body.light-mode .strength-bar {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .strength-level {
    color: #1a2332;
}

body.light-mode .strength-feedback {
    color: #5a6b7a;
}

body.light-mode .requirement {
    background: rgba(0, 0, 0, 0.05);
    color: #5a6b7a;
}

body.light-mode .requirement.ok {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

/* Responsividade */
@media (max-width: 768px) {
    .strength-requirements {
        grid-template-columns: 1fr;
    }

    .strength-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Animação */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.strength-fill {
    animation: pulse 1s ease-in-out infinite;
}

/* Botão de mostrar/esconder senha */
.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-blue);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.password-toggle-btn:hover {
    color: var(--text-white);
    transform: translateY(-50%) scale(1.1);
}

body.light-mode .password-toggle-btn {
    color: #0066cc;
}

body.light-mode .password-toggle-btn:hover {
    color: #1a2332;
}

/* Gerador de senha */
.password-generator {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 102, 204, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.password-generator-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.password-generator-btn:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.generated-password {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: var(--tertiary-dark);
    border: 1px solid var(--light-blue);
    border-radius: 0.3rem;
    font-family: 'Courier New', monospace;
    color: var(--light-blue);
    word-break: break-all;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: var(--light-blue);
    color: var(--primary-dark);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--text-white);
}

body.light-mode .password-generator {
    background: rgba(0, 102, 204, 0.05);
}

body.light-mode .password-generator-btn {
    background: #0066cc;
}

body.light-mode .password-generator-btn:hover {
    background: #00a8e8;
}

body.light-mode .generated-password {
    background: #e8ecf1;
    border-color: #0066cc;
    color: #0066cc;
}

body.light-mode .copy-btn {
    background: #0066cc;
    color: white;
}

body.light-mode .copy-btn:hover {
    background: #00a8e8;
}
