@charset "UTF-8";

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn .25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.modal-subtitle {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 28px;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Ícone decorativo (esquerda) — não captura cliques */
.icon-left {
    position: absolute;
    left: 12px;
    color: #aaa;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 11px 38px 11px 38px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: border-color .2s;
    outline: none;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    border-color: #3085d6;
}

/* Ícone toggle senha (direita) */
.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #aaa;
    font-size: 15px;
}

.toggle-password:hover {
    color: #555;
}

/* ===== BOTÃO ===== */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: #3085d6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}

.btn-primary:hover {
    background: #2570c0;
}

/* ===== LINKS ===== */
.links-row {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
}

.link-btn {
    color: #3085d6;
    background: none;
    border: none;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.link-btn:hover {
    text-decoration: underline;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #3085d6;
    cursor: pointer;
    font-size: 13px;
    background: none;
    border: none;
    margin-bottom: 20px;
}

.back-link:hover {
    text-decoration: underline;
}

/* ===== FORÇA DA SENHA ===== */
.password-hint {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.strength-bar {
    height: 4px;
    border-radius: 4px;
    margin-top: 8px;
    background: #eee;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width .3s, background .3s;
}

.strength-label {
    font-size: 11px;
    margin-top: 4px;
    color: #999;
}