/* =========================================================
   CASH & CARRY - FORGOT PASSWORD PAGE
========================================================= */

:root {
    --forgot-green: #16a34a;
    --forgot-dark-green: #15803d;
    --forgot-light-green: #f0fdf4;

    --forgot-text: #172033;
    --forgot-muted: #6b7280;
    --forgot-border: #e5e7eb;
    --forgot-white: #ffffff;
    --forgot-bg: #f7f8fa;

    --forgot-danger: #dc2626;
    --forgot-success: #16a34a;
}


/* =========================================================
   PAGE
========================================================= */

.forgot-page {
    min-height: 100vh;
    background: var(--forgot-bg);
}


/* =========================================================
   MAIN WRAPPER
========================================================= */

.forgot-wrapper {
    min-height: 100vh;

    display: grid;
    grid-template-columns: 1fr 1fr;
}


/* =========================================================
   LEFT BRAND SECTION
========================================================= */

.forgot-brand-panel {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 60px;

    background-image:
        linear-gradient(
            135deg,
            rgba(8, 80, 35, 0.90),
            rgba(22, 163, 74, 0.72)
        ),
        url("../assets/images/banners/a1-banner.jpg");

    background-size: cover;
    background-position: center;

    overflow: hidden;
}


/* Decorative circles */

.forgot-brand-panel::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    top: -120px;
    right: -100px;
}

.forgot-brand-panel::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.07);

    bottom: -100px;
    left: -80px;
}


/* Content */

.forgot-brand-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 570px;

    color: white;
}


/* =========================================================
   LOGO
========================================================= */

.forgot-logo {
    display: inline-flex;

    align-items: center;

    gap: 13px;

    color: white;

    text-decoration: none;

    margin-bottom: 75px;
}

.forgot-logo-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.16);

    border: 1px solid rgba(255, 255, 255, 0.25);

    backdrop-filter: blur(10px);

    font-size: 22px;
}

.forgot-logo-text {
    display: flex;
    flex-direction: column;
}

.forgot-logo-text strong {
    font-size: 23px;
    line-height: 1.2;
}

.forgot-logo-text span {
    margin-top: 3px;

    font-size: 11px;

    opacity: 0.85;
}


/* =========================================================
   BRAND TEXT
========================================================= */

.forgot-small-title {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 13px;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.16);

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 18px;
}

.forgot-small-title i {
    font-size: 13px;
}

.forgot-brand-text h1 {
    margin: 0;

    font-size: clamp(38px, 4vw, 58px);

    line-height: 1.05;

    letter-spacing: -1.5px;
}

.forgot-brand-text h1 span {
    display: block;

    color: #bbf7d0;
}

.forgot-brand-text p {
    max-width: 500px;

    margin: 22px 0 0;

    font-size: 15px;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.82);
}


/* =========================================================
   FEATURES
========================================================= */

.forgot-features {
    margin-top: 42px;

    display: grid;

    gap: 15px;
}

.forgot-feature {
    display: flex;

    align-items: center;

    gap: 14px;
}

.forgot-feature > i {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.14);

    font-size: 16px;
}

.forgot-feature div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.forgot-feature strong {
    font-size: 13px;
}

.forgot-feature span {
    font-size: 11px;

    color: rgba(255, 255, 255, 0.68);
}


/* =========================================================
   RIGHT SECTION
========================================================= */

.forgot-form-panel {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px 25px;

    background: var(--forgot-white);
}

.forgot-form-container {
    width: 100%;

    max-width: 500px;
}


/* =========================================================
   BACK HOME
========================================================= */

.forgot-back-home {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--forgot-muted);

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 24px;

    transition: 0.2s ease;
}

.forgot-back-home:hover {
    color: var(--forgot-green);

    transform: translateX(-2px);
}


/* =========================================================
   CARD
========================================================= */

.forgot-card {
    background: white;

    border: 1px solid var(--forgot-border);

    border-radius: 20px;

    padding: 38px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   CARD HEADER
========================================================= */

.forgot-card-header {
    text-align: center;

    margin-bottom: 30px;
}

.forgot-icon-circle {
    width: 65px;
    height: 65px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: var(--forgot-light-green);

    color: var(--forgot-green);

    font-size: 24px;
}

.forgot-card-header h2 {
    margin: 0;

    color: var(--forgot-text);

    font-size: 27px;

    letter-spacing: -0.5px;
}

.forgot-card-header p {
    margin: 10px auto 0;

    max-width: 390px;

    color: var(--forgot-muted);

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   MESSAGE
========================================================= */

.forgot-message {
    display: none;

    padding: 12px 14px;

    border-radius: 9px;

    margin-bottom: 18px;

    font-size: 12px;

    line-height: 1.5;
}

.forgot-message.success {
    display: block;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    color: #15803d;
}

.forgot-message.error {
    display: block;

    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #dc2626;
}


/* =========================================================
   FORM
========================================================= */

.forgot-form-group {
    margin-bottom: 21px;
}

.forgot-form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--forgot-text);

    font-size: 13px;

    font-weight: 700;
}


/* Input */

.forgot-input-wrapper {
    position: relative;
}

.forgot-input-wrapper > i {
    position: absolute;

    left: 15px;

    top: 50%;

    transform: translateY(-50%);

    color: #9ca3af;

    font-size: 14px;

    pointer-events: none;
}

.forgot-input-wrapper input {
    width: 100%;

    height: 50px;

    padding: 0 15px 0 44px;

    border: 1px solid var(--forgot-border);

    border-radius: 10px;

    outline: none;

    background: #fafafa;

    color: var(--forgot-text);

    font-size: 13px;

    transition: 0.2s ease;

    box-sizing: border-box;
}

.forgot-input-wrapper input::placeholder {
    color: #a1a1aa;
}

.forgot-input-wrapper input:focus {
    background: white;

    border-color: var(--forgot-green);

    box-shadow:
        0 0 0 3px rgba(22, 163, 74, 0.10);
}

.forgot-input-wrapper input:focus + * {
    color: var(--forgot-green);
}


/* Error */

.forgot-error {
    display: block;

    min-height: 17px;

    margin-top: 5px;

    color: var(--forgot-danger);

    font-size: 11px;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.forgot-submit-btn {
    width: 100%;

    height: 51px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--forgot-green),
            var(--forgot-dark-green)
        );

    color: white;

    cursor: pointer;

    padding: 0 17px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 9px 22px rgba(22, 163, 74, 0.20);

    transition: 0.2s ease;
}

.forgot-submit-btn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 13px 28px rgba(22, 163, 74, 0.27);
}

.forgot-submit-btn:active {
    transform: translateY(0);
}

.forgot-submit-btn:disabled {
    opacity: 0.75;

    cursor: not-allowed;

    transform: none;
}


/* Loader */

.forgot-btn-loader {
    display: none;
}

.forgot-submit-btn.loading .forgot-btn-loader {
    display: inline-flex;
}

.forgot-submit-btn.loading .forgot-btn-arrow {
    display: none;
}


/* =========================================================
   SWITCH LINKS
========================================================= */

.forgot-switch {
    text-align: center;

    margin-top: 23px;

    color: var(--forgot-muted);

    font-size: 12px;
}

.forgot-switch a {
    color: var(--forgot-green);

    font-weight: 800;

    text-decoration: none;

    margin-left: 4px;
}

.forgot-switch a:hover {
    text-decoration: underline;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.forgot-security-note {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: 22px;

    color: #6b7280;

    font-size: 11px;

    text-align: center;
}

.forgot-security-note i {
    color: var(--forgot-green);

    font-size: 14px;
}


/* =========================================================
   FOOTER
========================================================= */

.forgot-page-footer {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 9px;

    margin-top: 25px;

    color: #9ca3af;

    font-size: 10px;
}

.forgot-page-footer a {
    color: #6b7280;

    text-decoration: none;
}

.forgot-page-footer a:hover {
    color: var(--forgot-green);
}

.forgot-footer-dot {
    color: #d1d5db;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .forgot-wrapper {
        grid-template-columns: 0.85fr 1fr;
    }

    .forgot-brand-panel {
        padding: 40px;
    }

    .forgot-logo {
        margin-bottom: 55px;
    }

    .forgot-brand-text h1 {
        font-size: 42px;
    }

    .forgot-form-panel {
        padding: 35px 20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .forgot-wrapper {
        display: block;
    }

    .forgot-brand-panel {
        min-height: auto;

        padding: 35px 25px;

        display: block;
    }

    .forgot-logo {
        margin-bottom: 35px;
    }

    .forgot-brand-text h1 {
        font-size: 38px;
    }

    .forgot-brand-text p {
        font-size: 13px;

        line-height: 1.7;
    }

    .forgot-features {
        margin-top: 28px;

        grid-template-columns: 1fr 1fr;

        gap: 12px;
    }

    .forgot-feature {
        align-items: flex-start;
    }

    .forgot-feature:nth-child(3) {
        grid-column: 1 / -1;
    }

    .forgot-form-panel {
        min-height: auto;

        padding: 35px 18px 45px;
    }

    .forgot-form-container {
        max-width: 500px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .forgot-brand-panel {
        padding: 28px 18px;
    }

    .forgot-logo-icon {
        width: 45px;
        height: 45px;

        font-size: 18px;
    }

    .forgot-logo-text strong {
        font-size: 19px;
    }

    .forgot-brand-text h1 {
        font-size: 32px;
    }

    .forgot-brand-text p {
        margin-top: 16px;
    }

    .forgot-features {
        grid-template-columns: 1fr;
    }

    .forgot-feature:nth-child(3) {
        grid-column: auto;
    }

    .forgot-form-panel {
        padding: 28px 12px 40px;
    }

    .forgot-card {
        padding: 25px 18px;

        border-radius: 16px;
    }

    .forgot-card-header h2 {
        font-size: 23px;
    }

    .forgot-card-header p {
        font-size: 12px;
    }

    .forgot-page-footer {
        flex-wrap: wrap;
    }

}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .forgot-form-panel {
    background: #111827;
}

body.dark-mode .forgot-card {
    background: #1f2937;

    border-color: #374151;
}

body.dark-mode .forgot-card-header h2 {
    color: #f9fafb;
}

body.dark-mode .forgot-card-header p {
    color: #9ca3af;
}

body.dark-mode .forgot-form-group label {
    color: #f3f4f6;
}

body.dark-mode .forgot-input-wrapper input {
    background: #111827;

    border-color: #374151;

    color: #f9fafb;
}

body.dark-mode .forgot-input-wrapper input:focus {
    background: #111827;
}

body.dark-mode .forgot-back-home {
    color: #9ca3af;
}

body.dark-mode .forgot-security-note {
    color: #9ca3af;
}