/* ============================================================
   GERADOR DE SENHAS FORTES
   Estilos exclusivos da ferramenta
   ============================================================ */


/* ============================================================
   ÁREA PRINCIPAL
   ============================================================ */

.password-tool-area {
    max-width: 900px;
    margin: 0 auto;
}


/* ============================================================
   ORIENTAÇÃO
   ============================================================ */

.password-orientation-section {
    padding-top: 0;
}


.password-orientation {
    max-width: 900px;
    margin: 0 auto;
}


.password-orientation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}


.password-orientation-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}


.password-step {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}


.password-orientation-item h3 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 1rem;
}


.password-orientation-item p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
}


/* ============================================================
   CARD DO GERADOR
   ============================================================ */

.password-tool-card {
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}


.password-tool-title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.3;
}


.password-tool-description {
    margin: 0 0 25px;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.55;
}


/* ============================================================
   CONFIGURAÇÕES
   ============================================================ */

.password-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 30px;
    margin-bottom: 25px;
}


.password-field {
    margin: 0;
}


.password-field label,
.password-field-label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-weight: 600;
}


.password-field-help {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.82rem;
}


.password-length-row {
    display: flex;
    align-items: center;
    gap: 12px;
}


.password-length {
    width: 100%;
    accent-color: #2563eb;
}


.password-length-value {
    min-width: 42px;
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}


.password-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
}


.password-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.4;
}


.password-option input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2563eb;
}


.password-option-wide {
    grid-column: 1 / -1;
}


/* ============================================================
   AÇÕES
   ============================================================ */

.password-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}


/* ============================================================
   RESULTADO
   ============================================================ */

.password-result-area {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}


.password-result-header {
    margin-bottom: 20px;
}


.password-result-title {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 700;
}


.password-result-description {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}


/* ============================================================
   CAMPO DA SENHA
   ============================================================ */

.password-display {
    display: flex;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}


.password-output {
    flex: 1;
    min-width: 0;
    padding: 17px 18px;
    border: 0;
    outline: 0;
    background: transparent;
    font-family:
        "Courier New",
        Courier,
        monospace;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1e293b;
}


.password-copy-button {
    flex: 0 0 auto;
    min-width: 130px;
    border: 0;
    border-left: 1px solid #e2e8f0;
    padding: 0 18px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: #f8fafc;
    color: #1e293b;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.password-copy-button:hover {
    background: #eff6ff;
    color: #2563eb;
}


.password-copy-button:active {
    background: #dbeafe;
}


/* ============================================================
   INDICADOR DE FORÇA
   ============================================================ */

.password-strength-area {
    margin-top: 22px;
}


.password-strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 9px;
}


.password-strength-label {
    color: #334155;
    font-weight: 600;
}


.password-strength-text {
    color: #2563eb;
    font-weight: 700;
}


.password-strength-bar {
    width: 100%;
    height: 9px;
    border-radius: 5px;
    background: #e2e8f0;
    overflow: hidden;
}


.password-strength-progress {
    width: 0%;
    height: 100%;
    background: #2563eb;
    transition: width 0.25s ease;
}


.password-strength-description {
    margin: 9px 0 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}


/* ============================================================
   AVISO
   ============================================================ */

.password-notice {
    margin-top: 22px;
    padding: 13px 15px;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    background: #eff6ff;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.55;
}


/* ============================================================
   INFORMAÇÕES
   ============================================================ */

.password-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}


.password-best-practices {
    margin-top: 30px;
}


.password-best-practices ul {
    margin: 15px 0 0;
    padding-left: 22px;
}


.password-best-practices li {
    margin-bottom: 9px;
    line-height: 1.55;
}


/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 900px) {

    .password-orientation-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .password-settings,
    .password-info-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .password-tool-card {
        padding: 22px 18px;
    }


    .password-options {
        grid-template-columns: 1fr;
    }


    .password-option-wide {
        grid-column: auto;
    }


    .password-display {
        flex-direction: column;
    }


    .password-output {
        width: 100%;
    }


    .password-copy-button {
        border-left: 0;
        border-top: 1px solid #e2e8f0;
        min-height: 46px;
        width: 100%;
    }


    .password-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .password-actions .btn {
        width: 100%;
    }


    .password-orientation-item {
        padding: 17px;
    }

}


/* ============================================================
   IMPRESSÃO
   ============================================================ */

@media print {

    header,
    footer,
    .ad-container,
    .password-orientation-section,
    .password-settings,
    .password-actions,
    .password-copy-button {
        display: none !important;
    }


    .password-result-area {
        margin-top: 0;
        padding-top: 0;
        border: 0;
    }


    .password-display {
        border: 1px solid #cccccc;
    }

}