﻿/* =========================================================
   SOFIRA - PASSWORD RESET
   ========================================================= */

.pwd-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 18px;
    background: radial-gradient(circle at 15% 15%, rgba(47, 126, 229, .10), transparent 35%), radial-gradient(circle at 88% 80%, rgba(47, 126, 229, .08), transparent 30%), #f4f8fc;
    font-family: "Segoe UI", Arial, sans-serif;
}

.pwd-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 34px 36px;
    border: 1px solid #dce6f0;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 55px rgba(30, 67, 110, .10);
    text-align: center;
}

.pwd-back-link {
    position: absolute;
    top: 17px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6d8298 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

    .pwd-back-link:hover {
        color: #176bd4 !important;
    }

.pwd-brand {
    margin-bottom: 15px;
}

    .pwd-brand img {
        display: block;
        width: auto;
        max-width: 115px;
        max-height: 74px;
        margin: 0 auto;
    }

.pwd-icon,
.pwd-success-icon,
.pwd-invalid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    border-radius: 17px;
    font-size: 22px;
}

.pwd-icon {
    color: #176bd4;
    background: #eaf4ff;
}

.pwd-success-icon {
    color: #17825d;
    background: #eaf8f1;
}

.pwd-invalid-icon {
    color: #b56b19;
    background: #fff4e7;
}

.pwd-card h1 {
    margin: 0;
    color: #173a63;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.4px;
}

.pwd-intro {
    max-width: 380px;
    margin: 10px auto 23px;
    color: #71859a;
    font-size: 13px;
    line-height: 1.55;
}

.pwd-field {
    margin-top: 14px;
    text-align: left;
}

    .pwd-field label {
        display: block;
        margin-bottom: 6px;
        color: #48657f;
        font-size: 12px;
        font-weight: 800;
    }

.pwd-input-wrap {
    display: grid;
    grid-template-columns: 22px minmax(0,1fr);
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #d6e2ed;
    border-radius: 11px;
    background: #fbfdff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

    .pwd-input-wrap:focus-within {
        border-color: #7ca9df;
        box-shadow: 0 0 0 3px rgba(47, 119, 208, .09);
    }

    .pwd-input-wrap wa-icon {
        color: #7490aa;
        font-size: 14px;
    }

.pwd-input {
    width: 100%;
    height: 42px;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #2d4f6d;
    font-family: inherit;
    font-size: 14px;
}

.pwd-validation {
    display: block;
    margin-top: 6px;
    color: #c84d5b;
    font-size: 11px;
    font-weight: 650;
}

.pwd-primary-button,
.pwd-primary-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: 20px;
    padding: 10px 15px;
    border: 1px solid #176bd4;
    border-radius: 11px;
    color: #fff !important;
    background: linear-gradient(135deg, #3c87ef, #1765cf);
    box-shadow: 0 8px 20px rgba(26, 105, 210, .19);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .pwd-primary-button:hover,
    .pwd-primary-link:hover {
        transform: translateY(-1px);
        box-shadow: 0 11px 25px rgba(26, 105, 210, .24);
    }

.pwd-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 8px;
    padding: 0 16px;
    border: 1px solid #d0deeb;
    border-radius: 10px;
    color: #315f89 !important;
    background: #f7fbff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none !important;
}

.pwd-note {
    margin: 15px 0 0;
    color: #8a9aab;
    font-size: 10.5px;
    line-height: 1.5;
}

.pwd-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 16px 0;
    padding: 11px 12px;
    border-radius: 10px;
    text-align: left;
    font-size: 11.5px;
    line-height: 1.45;
    font-weight: 650;
}

    .pwd-message.success {
        border: 1px solid #cce8dc;
        color: #2e7259;
        background: #effaf5;
    }

    .pwd-message.error {
        border: 1px solid #f0cfd4;
        color: #a14553;
        background: #fff3f5;
    }

    .pwd-message wa-icon {
        flex: 0 0 auto;
        margin-top: 2px;
    }

@media (max-width: 600px) {
    .pwd-page {
        padding: 18px 12px;
    }

    .pwd-card {
        padding: 29px 20px;
        border-radius: 18px;
    }

        .pwd-card h1 {
            font-size: 23px;
        }

    .pwd-back-link {
        position: static;
        margin-bottom: 16px;
    }
}
