html {
    scrollbar-gutter: stable;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins";
}

body {
    width: 100%;
    min-height: 100vh;
    color: #121212;
}

/* ===== LAYOUT ===== */
.layout {
    width: 100%;
    display: flex;
    min-height: 100vh;
}

/* ===== CONTEÚDO ===== */
.password-page {
    flex: 1;
    padding: 32px;
}

.password-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.password-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(17, 17, 17, 0.04);
}

.password-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-block;
    margin-bottom: 14px;
    text-decoration: none;
    color: #5540b3;

    font-size: 13px;
    font-weight: 600;
}

.back-link:hover {
    opacity: 0.7;
    color: #6049c4;
}

.password-header h1 {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.password-header p {
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;


}

/* ===== FORM ===== */
.password-form {

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.toggle-password img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.toggle-password:hover img {
    opacity: 1;
}

.password-strength {
    margin-top: 8px;
    display: none;
}

.password-strength.visible {
    display: block;
}

.strength-bar {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-top: 2px;
}

.strength-bar .segment {
    display: block;
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    min-width: 0;
    transition: background-color 0.25s ease;
}

.segment.weak {
    background: #facc15;
}

.segment.medium {
    background: #eab308;
}

.segment.strong {
    background: #22c55e;
}

/* texto */
.strength-text {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.form-error {
    color: #f76276;
    font-size: 12px;
    font-weight: 600;
    margin-top: -10px;
    margin-bottom: 10px;
}

.form-success {
    min-height: 18px;
    font-size: 12px;
    color: #188038;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-save {
    margin-bottom: 40px;
    margin-top: -40px;
    width: 100%;
    height: 52px;
    border-radius: 8px;
    background: #18181A;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow:
        0 10px 25px rgba(2, 6, 23, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.btn-save:hover {
    background-color: #232327;
    transform: scale(1.03);
    filter: brightness(1.08);
}


/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .layout {
        padding-left: 0;
    }

    .sidebar {
        display: none;
    }

    .password-page {
        padding: 18px;
    }

    .password-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .password-header h1 {
        font-size: 24px;
    }

    .password-header p {
        font-size: 13px;
    }

    .input-wrap input {
        height: 46px;
        font-size: 13px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-save,
    .btn-clear {
        width: 100%;
    }

    .btn-clear {
        text-align: center;
    }
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}


.input-wrapper input {
    width: 100%;
    height: 46px;
    padding: 0 42px 0 15px;
    border-radius: 8px;
    border: 1px solid #d8dbe5;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #8b8e98;
}

.input-wrapper input:focus {
    border-color: #624bc9;
    box-shadow: 0 0 0 1px #624bc9;
}



.input-icon {
    opacity: 0.65;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

/* quando o input estiver em foco */
.input-wrapper:focus-within .input-icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(41%) sepia(86%) saturate(2100%) hue-rotate(200deg) brightness(96%) contrast(96%);
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.toggle-password:focus,
.toggle-password:active {
    outline: none;
    box-shadow: none;
    background: transparent;
}

.toggle-password img {
    width: 18px;
    display: block;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .layout {
        padding-left: 0;
    }

    .sidebar {
        display: none;
    }

    .password-page {
        padding: 14px;
    }

    .password-card {
        padding: 18px 14px;
        border-radius: 12px;
        box-shadow: none;
    }

    .password-header {
        margin-bottom: 22px;
    }

    .back-link {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .password-header h1 {
        font-size: 20px;
        line-height: 1.15;
        margin-bottom: 15px;
    }

    .password-header p {
        font-size: 12px;
        line-height: 1.4;
    }

    .password-form {
        gap: 14px;
    }

    .form-group {
        gap: 6px;
    }

    .form-group label {
        font-size: 12px;
    }

    .input-wrapper input {
        height: 42px;
        font-size: 12px;
        padding: 0 38px 0 12px;
        border-radius: 8px;
    }

    .input-wrapper input::placeholder {
        font-size: 12px;
    }

    .toggle-password {
        width: 24px;
        height: 24px;
        right: 8px;
    }

    .toggle-password img {
        width: 15px;
        height: 15px;
    }

    .password-strength {
        margin-top: 6px;
    }

    .strength-bar {
        gap: 5px;
    }

    .strength-bar .segment {
        height: 5px;
    }

    .strength-text {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.3;
    }

    .form-error,
    .form-success {
        font-size: 11px;
        line-height: 1.3;
        min-height: 14px;
        margin-bottom: 0;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn-save {
        font-size: 13px;
        margin-top: -30px;
    }
}


.email-verification {
    padding-top: 40px;

    width: 100%;
}

.email-verification h1,
.email-verification .subtitle {
    text-align: center;
}


/* título */
.email-verification h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0A1629;
}

/* subtítulo */
.email-verification .subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}


h1 .title-icon img {
    width: 28px;
    height: 28px;
    /* ajuste fino de alinhamento */
}


.recover-stepper .recover-success-step {
    display: none;
}

.recover-stepper.show-success .recover-form-step {
    display: none;
}

.recover-stepper.show-success .recover-success-step {
    display: block;
}

.title-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    vertical-align: middle;
}

.title-icon img {
    width: 22px;
    height: 22px;
}

.recover-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}