﻿/* =========================================================
   Forgot Password
   Patient History / Clinic Management System
   ========================================================= */

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

.fp-body {
    margin: 0;
    min-height: 100vh;
    background: #f6f8fb;
    color: #1f2937;
}

.fp-body *,
.fp-body *::before,
.fp-body *::after {
    box-sizing: border-box;
}

.fp-page {
    min-height: 100vh;
}

.fp-shell {
    display: grid;
    grid-template-columns: minmax(420px, 46%) minmax(0, 54%);
    min-height: 100vh;
}

/* =========================================================
   Brand panel
   ========================================================= */

.fp-brand-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px 48px;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(4, 47, 62, 0.98), rgba(7, 78, 92, 0.98));
}

.fp-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 20%, rgba(255,255,255,.09), transparent 24%),
        radial-gradient(circle at 20% 82%, rgba(255,255,255,.05), transparent 30%);
}

.fp-brand-decoration {
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    pointer-events: none;
}

.fp-brand-decoration-1 {
    top: -180px;
    right: -170px;
    width: 470px;
    height: 470px;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.fp-brand-decoration-2 {
    top: -110px;
    right: -100px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.fp-brand-decoration-3 {
    left: -160px;
    bottom: -190px;
    width: 430px;
    height: 430px;
    background: rgba(255, 255, 255, 0.035);
}

.fp-brand,
.fp-brand-content,
.fp-brand-footer {
    position: relative;
    z-index: 2;
}

.fp-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 13px;
    color: #ffffff;
    text-decoration: none;
}

.fp-brand-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 26px;
}

.fp-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.fp-brand-text strong {
    font-size: 16px;
    font-weight: 700;
}

.fp-brand-text small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.fp-brand-content {
    width: 100%;
    max-width: 590px;
    padding: 52px 0 40px;
}

.fp-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.fp-brand-content h1,
.fp-brand-title {
    max-width: 560px;
    margin: 23px 0 0;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 43px);
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: -0.025em;
}

.fp-brand-description {
    max-width: 540px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    line-height: 1.85;
}

.fp-feature-list {
    display: grid;
    gap: 19px;
    margin-top: 36px;
}

.fp-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.fp-feature-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 19px;
}

.fp-feature strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 650;
}

.fp-feature p {
    max-width: 430px;
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.6;
}

.fp-brand-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
}

.fp-brand-footer span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

/* =========================================================
   Form panel
   ========================================================= */

.fp-form-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 50px 38px;
    background:
        radial-gradient(circle at 92% 8%, rgba(10, 120, 138, .05), transparent 22%),
        #f7f9fc;
}

.fp-form-container {
    width: 100%;
    max-width: 470px;
}

.fp-theme-toggle {
    position: absolute !important;
    top: 22px;
    right: 24px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
}

.fp-dark-icon {
    display: none;
}

.dark .fp-dark-icon {
    display: inline-block;
}

.dark .fp-light-icon {
    display: none;
}

.fp-mobile-brand {
    display: none;
}

/* =========================================================
   Heading
   ========================================================= */

.fp-header {
    margin-bottom: 25px;
}

.fp-header-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #e9f6f7;
    color: #0b7583;
    font-size: 24px;
}

.fp-header h1,
.fp-header h2 {
    margin: 0;
    color: #182230;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.fp-header p {
    max-width: 440px;
    margin: 10px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.75;
}

/* =========================================================
   Card
   ========================================================= */

.fp-card {
    overflow: hidden;
    border: 1px solid #e4e9f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03),
        0 10px 32px rgba(16, 24, 40, 0.06);
}

.fp-card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 26px;
}

.fp-field label {
    display: inline-block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.fp-field label span {
    color: #d92d20;
}

.fp-input-wrap {
    position: relative;
}

.fp-input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 17px;
    pointer-events: none;
}

.fp-input {
    width: 100% !important;
    min-height: 46px !important;
    padding-left: 42px !important;
    border-radius: 10px !important;
}

.fp-input:focus {
    border-color: #0e8392 !important;
    box-shadow: 0 0 0 3px rgba(14, 131, 146, 0.10) !important;
}

.fp-error {
    min-height: 18px;
    margin-top: 5px;
}

.fp-error:empty {
    min-height: 0;
    margin-top: 0;
}

.fp-help {
    margin: 6px 0 0;
    color: #98a2b3;
    font-size: 11px;
    line-height: 1.55;
}

.fp-primary-btn,
.fp-secondary-btn {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.fp-primary-btn {
    margin-top: 2px;
}

.fp-spinner {
    display: none !important;
}

.fp-spinner:not(.hidden):not([hidden]) {
    display: inline-block !important;
}

/* =========================================================
   Alert
   ========================================================= */

.fp-alert {
    display: none;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 15px;
    padding: 13px 14px;
    border: 1px solid #fecdca;
    border-radius: 12px;
    background: #fff6f5;
}

.fp-alert:not(.hidden):not([hidden]) {
    display: flex;
}

.fp-alert-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fee4e2;
    color: #d92d20;
}

.fp-alert strong {
    display: block;
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
}

.fp-alert p {
    margin: 3px 0 0;
    color: #7a271a;
    font-size: 12px;
    line-height: 1.55;
}

/* =========================================================
   Security note
   ========================================================= */

.fp-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 14px;
    border: 1px solid #d9e3ea;
    border-radius: 12px;
    background: rgba(255, 255, 255, .62);
}

.fp-security-note > i {
    margin-top: 2px;
    color: #0d7d8b;
    font-size: 17px;
}

.fp-security-note p {
    margin: 0;
    color: #667085;
    font-size: 11px;
    line-height: 1.65;
}

/* =========================================================
   Success state
   ========================================================= */

.fp-success-state {
    display: none;
}

.fp-success-state:not(.hidden):not([hidden]) {
    display: block;
}

.fp-success-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 34px 28px;
    text-align: center;
}

.fp-success-icon {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ecfdf3;
    color: #039855;
    font-size: 31px;
}

.fp-success-body h1,
.fp-success-body h2 {
    margin: 20px 0 0;
    color: #182230;
    font-size: 25px;
    font-weight: 700;
}

.fp-success-body > p {
    max-width: 365px;
    margin: 10px 0 23px;
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
}

.fp-success-body .fp-secondary-btn {
    margin-top: 10px;
}

.fp-footer-text {
    margin-top: 20px;
    color: #98a2b3;
    font-size: 10px;
    text-align: center;
}

/* =========================================================
   Utility visibility
   ========================================================= */

/*
   Use both the native [hidden] attribute and Metronic/Tailwind's
   .hidden class. This prevents transient states from flashing or
   becoming visible if one stylesheet is missing/cached.
*/
[hidden],
.hidden {
    display: none !important;
}

/* JustValidate page-local states. */
.fp-input-invalid {
    border-color: #d92d20 !important;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.08) !important;
}

.fp-input-valid {
    border-color: #039855 !important;
}

.fp-validation-message {
    display: block;
    margin-top: 5px;
    color: #d92d20;
    font-size: 11px;
    line-height: 1.5;
}

/* =========================================================
   Dark mode
   ========================================================= */

.dark .fp-body,
.dark .fp-form-panel {
    background: #0f141c;
    color: #e7edf5;
}

.dark .fp-form-panel {
    background:
        radial-gradient(circle at 92% 8%, rgba(28, 157, 173, .08), transparent 22%),
        #111821;
}

.dark .fp-header h1,
.dark .fp-header h2,
.dark .fp-success-body h1,
.dark .fp-success-body h2 {
    color: #f5f7fa;
}

.dark .fp-header p,
.dark .fp-help,
.dark .fp-security-note p,
.dark .fp-success-body > p,
.dark .fp-footer-text {
    color: #98a2b3;
}

.dark .fp-card {
    border-color: #273240;
    background: #161f2a;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

.dark .fp-field label {
    color: #d0d5dd;
}

.dark .fp-input {
    color: #f2f4f7 !important;
    background: #111821 !important;
    border-color: #344054 !important;
}

.dark .fp-input::placeholder {
    color: #667085;
}

.dark .fp-security-note {
    border-color: #293643;
    background: #141d27;
}

.dark .fp-alert {
    border-color: rgba(217, 45, 32, .32);
    background: rgba(217, 45, 32, .08);
}

.dark .fp-alert p {
    color: #fda29b;
}

.dark .fp-mobile-brand strong {
    color: #f5f7fa;
}

.dark .fp-mobile-brand small {
    color: #98a2b3;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
    .fp-shell {
        grid-template-columns: minmax(390px, 43%) minmax(0, 57%);
    }

    .fp-brand-panel {
        padding: 34px 34px;
    }

    .fp-brand-content h1,
    .fp-brand-title {
        font-size: 32px;
    }

    .fp-form-panel {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 900px) {
    .fp-shell {
        display: block;
    }

    .fp-brand-panel {
        display: none;
    }

    .fp-form-panel {
        min-height: 100vh;
        padding: 80px 22px 40px;
    }

    .fp-form-container {
        max-width: 500px;
    }

    .fp-mobile-brand {
        display: inline-flex;
        align-items: center;
        gap: 11px;
        margin-bottom: 34px;
        color: inherit;
        text-decoration: none;
    }

    .fp-mobile-brand-icon {
        display: inline-flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        background: #e9f6f7;
        color: #0b7583;
        font-size: 22px;
    }

    .fp-mobile-brand > span:last-child {
        display: flex;
        flex-direction: column;
    }

    .fp-mobile-brand strong {
        color: #182230;
        font-size: 13px;
    }

    .fp-mobile-brand small {
        margin-top: 2px;
        color: #667085;
        font-size: 10px;
    }
}

@media (max-width: 540px) {
    .fp-form-panel {
        align-items: flex-start;
        padding: 72px 16px 28px;
    }

    .fp-theme-toggle {
        top: 16px;
        right: 16px;
    }

    .fp-mobile-brand {
        margin-bottom: 28px;
    }

    .fp-header {
        margin-bottom: 21px;
    }

    .fp-header-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 15px;
        font-size: 21px;
    }

    .fp-header h1,
    .fp-header h2 {
        font-size: 25px;
    }

    .fp-header p {
        font-size: 12px;
    }

    .fp-card {
        border-radius: 14px;
    }

    .fp-card-body {
        padding: 20px;
    }

    .fp-success-body {
        padding: 28px 20px;
    }
}
