/* =====================================================
   FIRQUI JEWELS - FORGOT PASSWORD PAGE
   MATCHES LOGIN & REGISTER AUTHENTICATION DESIGN
===================================================== */

/* =====================================================
   ROOT VARIABLES
===================================================== */
:root {
    --dark-teal: #0A373B;
    --header-teal: #29474B;
    --pink: #EC9E96;
    --light-pink: #FFB9B3;
    --cream: #FAF5EE;
    --muted-text: #6F7776;

    --gold: #E1B62E;
    --gold-hover: #F0C63E;

    --input-teal: #063F42;

    --font-imprima: 'Imprima', sans-serif;
    --font-hurricane: 'Hurricane', cursive;
    --font-almarai: 'Almarai', sans-serif;
}

/* =====================================================
   RESET & BASE
===================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: var(--dark-teal);
    font-family: var(--font-imprima);
    overflow-x: hidden;
    position: relative;
}

/* =====================================================
   WEBSITE BACKDROP (Visible in standalone mode)
   Displays FIRQUI JEWELS website behind blur overlay
===================================================== */
.website-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.backdrop-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    transform: scale(1.02);
}

.backdrop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 55, 59, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* =====================================================
   MAIN PAGE LAYOUT
===================================================== */
.auth-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* =====================================================
   HEADER
   SAME AS LOGIN & REGISTER
===================================================== */
.auth-header {
    width: 100%;
    height: 110px;
    background: var(--header-teal);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    position: relative;
    z-index: 20;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo img {
    width: 120px;
    height: auto;
    display: block;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pink);
    font-family: var(--font-imprima);
    font-size: 19px;
    text-decoration: none;
    transition: 0.3s ease;
}

.back-home:hover {
    color: var(--light-pink);
}

/* =====================================================
   DECORATIVE SHAPES
   Same teal / pink theme as Login
===================================================== */
.auth-decoration-left {
    position: absolute;
    width: 390px;
    height: 560px;
    left: -245px;
    top: 280px;
    background: var(--pink);
    opacity: 0.18;
    border-radius: 220px;
    z-index: 1;
    pointer-events: none;
}

.auth-decoration-right {
    position: absolute;
    width: 390px;
    height: 560px;
    right: -245px;
    top: 280px;
    background: var(--pink);
    opacity: 0.18;
    border-radius: 220px;
    z-index: 1;
    pointer-events: none;
}

/* =====================================================
   CONTENT SECTION
===================================================== */
.auth-content {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 45px 20px;
    position: relative;
    z-index: 5;
}

/* =====================================================
   CARD
   SAME SIZE & CREAM BACKGROUND AS LOGIN / REGISTER
===================================================== */
.auth-card {
    position: relative;
    width: 510px;
    background: var(--cream);
    border-radius: 70px;
    padding: 45px 60px 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
}

/* =====================================================
   HEADING
===================================================== */
.auth-heading {
    text-align: center;
    margin-bottom: 24px;
}

.auth-small-title {
    display: block;
    color: var(--dark-teal);
    font-family: var(--font-imprima);
    font-size: 25px;
    line-height: 1.2;
}

.auth-heading h1 {
    color: var(--dark-teal);
    font-family: var(--font-hurricane);
    font-size: 80px;
    font-weight: 400;
    line-height: 0.9;
    margin: 0;
}

.auth-subheading {
    color: var(--dark-teal);
    font-family: var(--font-imprima);
    font-size: 23px;
    font-weight: 600;
    margin-top: 10px;
}

.auth-instruction {
    margin-top: 8px;
    color: var(--muted-text);
    font-family: var(--font-imprima);
    font-size: 15px;
    line-height: 1.45;
}

/* =====================================================
   FORM
===================================================== */
.auth-form {
    width: 100%;
}

/* =====================================================
   INPUT GROUP
===================================================== */
.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: none;
}

.input-wrapper {
    position: relative;
    width: 100%;
    height: 58px;
}

.input-wrapper > i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 19px;
    z-index: 2;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    border-radius: 19px;
    background: var(--input-teal);
    color: #FFFFFF;
    font-family: var(--font-imprima);
    font-size: 18px;
    padding: 0 55px 0 64px;
    transition: 0.25s ease;
}

.input-wrapper input::placeholder {
    color: #969A9A;
}

.input-wrapper input:focus {
    box-shadow: 0 0 0 3px rgba(236, 158, 150, 0.35);
}

.field-error {
    color: #B44141;
    font-family: var(--font-imprima);
    font-size: 13px;
    margin-top: 6px;
    padding-left: 15px;
    min-height: 16px;
    transition: 0.2s ease;
}

/* =====================================================
   BUTTON
   SAME GOLD AS LOGIN & REGISTER BUTTON
===================================================== */
.auth-button {
    width: 100%;
    height: 58px;
    margin-top: 8px;
    border: none;
    border-radius: 29px;
    background: var(--gold);
    color: #000000;
    font-family: var(--font-imprima);
    font-size: 21px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-button:hover:not(:disabled) {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.auth-button:active:not(:disabled) {
    transform: translateY(0);
}

.auth-button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-spinner {
    display: none;
    font-size: 18px;
}

.auth-button.loading .btn-spinner {
    display: inline-block;
}

/* =====================================================
   MESSAGE CONTAINER
===================================================== */
.auth-message {
    min-height: 20px;
    margin-top: 12px;
    text-align: center;
    font-family: var(--font-imprima);
    font-size: 14px;
    line-height: 1.4;
    border-radius: 12px;
    padding: 0;
    transition: 0.3s ease;
}

.auth-message.success {
    color: #28704F;
    background: rgba(40, 112, 79, 0.12);
    padding: 10px 14px;
}

.auth-message.error {
    color: #B44141;
    background: rgba(180, 65, 65, 0.12);
    padding: 10px 14px;
}

/* =====================================================
   SWITCH / BACK TO LOGIN SECTION
===================================================== */
.switch-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(10, 55, 59, 0.12);
    text-align: center;
    color: var(--muted-text);
    font-family: var(--font-imprima);
    font-size: 16px;
}

.switch-section a {
    margin-left: 6px;
    color: var(--dark-teal);
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.switch-section a:hover {
    color: var(--pink);
}

/* =====================================================
   FOOTER
   SAME AS LOGIN & REGISTER
===================================================== */
.auth-footer {
    width: 100%;
    min-height: 70px;
    padding: 15px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--pink);
    font-family: var(--font-almarai);
    font-size: 14px;
    z-index: 10;
}

/* =====================================================
   MODAL AUTH MODE
   Active when loaded inside index authModalFrame iframe
===================================================== */
body.modal-auth-mode {
    background: transparent !important;
    min-height: auto;
    overflow: hidden;
}

body.modal-auth-mode .website-backdrop {
    display: none !important;
}

body.modal-auth-mode .auth-page {
    min-height: 100%;
    width: 100%;
    background: transparent !important;
    display: block;
}

body.modal-auth-mode .auth-header,
body.modal-auth-mode .auth-footer,
body.modal-auth-mode .auth-decoration-left,
body.modal-auth-mode .auth-decoration-right {
    display: none !important;
}

body.modal-auth-mode .auth-content {
    width: 100%;
    min-height: 100%;
    padding: 45px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.modal-auth-mode .auth-card {
    width: 100%;
    max-width: 510px;
    margin: 0;
    border-radius: 35px;
    box-shadow: none;
}

/* =====================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
===================================================== */
@media (max-width: 900px) {
    .auth-header {
        height: 100px;
        padding: 0 35px;
    }

    .brand-logo img {
        width: 110px;
    }

    .auth-content {
        padding: 35px 20px;
    }

    .auth-card {
        width: min(510px, 92vw);
    }

    .auth-decoration-left,
    .auth-decoration-right {
        opacity: 0.12;
    }
}

@media (max-width: 600px) {
    .auth-header {
        height: 80px;
        padding: 0 20px;
    }

    .brand-logo img {
        width: 95px;
    }

    .back-home span {
        display: none;
    }

    .back-home {
        font-size: 20px;
    }

    .auth-content {
        padding: 25px 10px;
    }

    .auth-card {
        width: 100%;
        border-radius: 35px;
        padding: 30px 20px 25px;
    }

    .auth-heading {
        margin-bottom: 20px;
    }

    .auth-small-title {
        font-size: 21px;
    }

    .auth-heading h1 {
        font-size: 68px;
    }

    .auth-subheading {
        font-size: 20px;
    }

    .auth-instruction {
        font-size: 14px;
    }

    .input-group {
        margin-bottom: 14px;
    }

    .input-wrapper {
        height: 56px;
    }

    .input-wrapper input {
        font-size: 16px;
        padding-left: 58px;
    }

    .auth-button {
        height: 56px;
        font-size: 19px;
    }

    .auth-footer {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 15px;
        font-size: 11px;
    }
}
