/*
 * BimeGostaran Login Page Redesign
 * Scope: page content + login form + footer only
 * Header selectors (.top-navbar and .navbar) are intentionally untouched.
 */

:root {
    --bg-page: #f4f8f5;
    --bg-soft: #edf6f0;
    --surface: #ffffff;
    --surface-muted: #f8fbf9;
    --primary: #176c49;
    --primary-hover: #10583b;
    --primary-dark: #0b3f2c;
    --secondary: #0d3443;
    --accent: #d8ad4f;
    --text: #17362b;
    --text-soft: #687a72;
    --border: #dce9e2;
    --border-strong: #c8dbd1;
    --success-soft: #e8f5ed;
    --danger: #bc3f4b;
    --shadow-sm: 0 10px 30px rgba(14, 62, 43, 0.08);
    --shadow-md: 0 24px 70px rgba(11, 63, 44, 0.14);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
}

/* =========================================================
   PAGE CONTENT
   The global website header is deliberately excluded.
   ========================================================= */

.contact-page.style-5 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    direction: rtl;
    min-height: 720px;
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at 8% 15%, rgba(216, 173, 79, 0.14), transparent 280px),
        radial-gradient(circle at 92% 85%, rgba(23, 108, 73, 0.15), transparent 330px),
        linear-gradient(145deg, #f9fcfa 0%, var(--bg-page) 48%, #edf6f0 100%);
    color: var(--text);
}

.contact-page.style-5::before,
.contact-page.style-5::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(0);
}

.contact-page.style-5::before {
    width: 480px;
    height: 480px;
    top: -260px;
    right: -180px;
    border: 80px solid rgba(23, 108, 73, 0.055);
}

.contact-page.style-5::after {
    width: 340px;
    height: 340px;
    left: -190px;
    bottom: -190px;
    border: 60px solid rgba(13, 52, 67, 0.045);
}

.contact-page.style-5 .style-login {
    position: relative;
    min-height: 690px;
    padding: 68px 20px 90px;
    background: transparent;
}

.contact-page.style-5 .style-login::before {
    content: "";
    position: absolute;
    width: 185px;
    height: 185px;
    top: 80px;
    left: 8%;
    opacity: 0.35;
    border-radius: 38px;
    transform: rotate(20deg);
    background:
        linear-gradient(135deg, rgba(23, 108, 73, 0.08), rgba(216, 173, 79, 0.12));
    box-shadow:
        45px 45px 0 rgba(23, 108, 73, 0.035),
        90px 90px 0 rgba(13, 52, 67, 0.025);
    pointer-events: none;
}

/* =========================================================
   PAGE INTRO / BREADCRUMB
   ========================================================= */

.contact-page.style-5 .community {
    position: relative;
    z-index: 2;
    padding-top: 0 !important;
    margin-bottom: 34px;
}

.contact-page.style-5 .section-head {
    margin-bottom: 12px !important;
}

.contact-page.style-5 .section-head h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0 0 18px;
    color: var(--secondary);
    font-size: clamp(27px, 3.2vw, 42px);
    font-weight: 850;
    line-height: 1.45;
    letter-spacing: -0.8px;
}

.contact-page.style-5 .section-head h2::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 76px;
    height: 5px;
    border-radius: 20px;
    transform: translateX(50%);
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.contact-page.style-5 .section-head h2 span {
    color: var(--primary) !important;
    background: transparent !important;
    -webkit-text-fill-color: var(--primary) !important;
}

.contact-page.style-5 .page-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: var(--text-soft) !important;
    font-size: 13px;
}

.contact-page.style-5 .page-links a {
    margin: 0 !important;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-page.style-5 .page-links a:first-child:hover {
    color: var(--primary);
}

.contact-page.style-5 .page-links a:last-child {
    color: var(--primary) !important;
    font-weight: 700;
}

.contact-page.style-5 .page-links span {
    margin: 0 !important;
    color: #a9b8b1;
}

/* =========================================================
   LOGIN CARD
   ========================================================= */

.contact-page.style-5 #ContentPlaceHolder1_ctl01 {
    position: relative;
    z-index: 3;
    width: min(100%, 510px);
    margin: 0 auto;
}

.contact-page.style-5 #signUpForm1 {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 38px 26px 42px;
    overflow: hidden;
    border: 1px solid rgba(200, 219, 209, 0.85);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 250, 0.96));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    max-width: 80%;
}

.contact-page.style-5 #signUpForm1::before {
    content: "";
    position: absolute;
    top: 0;
    right: 32px;
    left: 32px;
    height: 4px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));
}

.contact-page.style-5 #signUpForm1::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 180px;
    height: 180px;
    top: -110px;
    left: -85px;
    border-radius: 50%;
    background: rgba(23, 108, 73, 0.055);
    pointer-events: none;
}

.contact-page.style-5 #signUpForm1 > * {
    position: relative;
    z-index: 1;
}

.contact-page.style-5 #signUpForm1 .step {
    margin: 0;
}

.contact-page.style-5 #signUpForm1 .step h5 {
    position: relative;
    margin: 0 0 30px !important;
    padding-bottom: 28px;
}

.contact-page.style-5 #signUpForm1 .step h5::after {
    content: "ورود امن به پرتال کاربران";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
}

.contact-page.style-5 #signUpForm1 .step h5 img {
    display: block;
    width: auto;
    max-width: 132px !important;
    max-height: 92px;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 7px 15px rgba(11, 63, 44, 0.13));
}

.contact-page.style-5 #signUpForm1 .mb-3 {
    position: relative;
    margin-bottom: 18px !important;
}

.contact-page.style-5 #signUpForm1 input[type="text"],
.contact-page.style-5 #signUpForm1 input[type="password"],
.contact-page.style-5 #signUpForm1 input[type="email"],
.contact-page.style-5 #signUpForm1 input[type="tel"] {
    display: block;
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 0 18px;
    direction: rtl;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 58px;
    outline: none;
    border: 1px solid var(--border);
    border-radius: 16px;
    background-color: var(--surface-muted);
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.contact-page.style-5 #signUpForm1 input[type="text"]::placeholder,
.contact-page.style-5 #signUpForm1 input[type="password"]::placeholder,
.contact-page.style-5 #signUpForm1 input[type="email"]::placeholder,
.contact-page.style-5 #signUpForm1 input[type="tel"]::placeholder {
    color: #93a39b;
    font-weight: 500;
    opacity: 1;
}

.contact-page.style-5 #signUpForm1 input[type="text"]:hover,
.contact-page.style-5 #signUpForm1 input[type="password"]:hover,
.contact-page.style-5 #signUpForm1 input[type="email"]:hover,
.contact-page.style-5 #signUpForm1 input[type="tel"]:hover {
    border-color: var(--border-strong);
    background-color: #fff;
}

.contact-page.style-5 #signUpForm1 input[type="text"]:focus,
.contact-page.style-5 #signUpForm1 input[type="password"]:focus,
.contact-page.style-5 #signUpForm1 input[type="email"]:focus,
.contact-page.style-5 #signUpForm1 input[type="tel"]:focus {
    border-color: rgba(23, 108, 73, 0.68);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(23, 108, 73, 0.10);
    transform: translateY(-1px);
}

.contact-page.style-5 #signUpForm1 br {
    display: none;
}

.contact-page.style-5 #signUpForm1 .float-right {
    min-height: 0;
}

.contact-page.style-5 #signUpForm1 .form-footer {
    display: block !important;
    width: 100%;
    margin-top: 8px;
}

.contact-page.style-5 #ContentPlaceHolder1_nextBtn,
.contact-page.style-5 #signUpForm1 input[type="submit"],
.contact-page.style-5 #signUpForm1 .btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 13px 24px;
    overflow: hidden;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
    border: 0;
    border-radius: 16px;
    background:
        linear-gradient(120deg, var(--primary-dark), var(--primary) 58%, #23855c);
    box-shadow: 0 14px 30px rgba(23, 108, 73, 0.24);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.contact-page.style-5 #ContentPlaceHolder1_nextBtn:hover,
.contact-page.style-5 #signUpForm1 input[type="submit"]:hover,
.contact-page.style-5 #signUpForm1 .btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 18px 38px rgba(23, 108, 73, 0.31);
}

.contact-page.style-5 #ContentPlaceHolder1_nextBtn:active,
.contact-page.style-5 #signUpForm1 input[type="submit"]:active,
.contact-page.style-5 #signUpForm1 .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(23, 108, 73, 0.20);
}

.contact-page.style-5 #ContentPlaceHolder1_nextBtn:focus-visible,
.contact-page.style-5 #signUpForm1 input[type="submit"]:focus-visible {
    outline: 3px solid rgba(216, 173, 79, 0.50);
    outline-offset: 3px;
}

.contact-page.style-5 #ContentPlaceHolder1_imgError,
.contact-page.style-5 #signUpForm1 .label {
    display: block;
    width: 100%;
    margin-top: 15px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.9;
    text-align: center;
}

.contact-page.style-5 #ContentPlaceHolder1_imgError:empty {
    display: none;
}

.contact-page.style-5 + .mb-40,
.contact-page.style-5 .mb-40 {
    margin: 0 !important;
    height: 0;
}

.contact-page.style-5 + .mb-40 br,
.contact-page.style-5 .mb-40 br {
    display: none;
}

/* =========================================================
   LOADER
   ========================================================= */

#loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(244, 248, 245, 0.84) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#loader .spinner {
    width: 58px;
    height: 58px;
    border: 5px solid rgba(23, 108, 73, 0.14) !important;
    border-top-color: var(--primary) !important;
    border-right-color: var(--accent) !important;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(11, 63, 44, 0.14);
    animation: bime-login-spin 0.8s linear infinite;
}

@keyframes bime-login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   FOOTER
   ========================================================= */

footer.style-6 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    padding: 72px 0 0;
    color: rgba(255, 255, 255, 0.78);
    border: 0 !important;
    background: #0b3f2c !important;
}

footer.style-6 .container {
    position: relative;
    z-index: 1;
}

footer.style-6 .row.gx-0 {
    row-gap: 36px;
}

footer.style-6 .items {
    height: 100%;
    padding: 0 14px;
}

footer.style-6 .items .title {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
}

footer.style-6 .items .title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent), #f2d58d);
}

footer.style-6 .items .text {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 2.15;
    text-align: justify;
}

footer.style-6 .items ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer.style-6 .items ul li {
    position: relative;
    margin: 0 0 12px;
    padding-right: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 2;
}

footer.style-6 .items ul li::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(216, 173, 79, 0.10);
}

footer.style-6 .items ul li i {
    color: #f0cf83;
}

footer.style-6 a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

footer.style-6 a:hover {
    color: #fff;
}

footer.style-6 .socail-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

footer.style-6 .socail-icons a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.075) !important;
    backdrop-filter: blur(6px);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

footer.style-6 .socail-icons a:hover {
    transform: translateY(-3px);
    border-color: rgba(216, 173, 79, 0.45);
    background: rgba(216, 173, 79, 0.16) !important;
}

footer.style-6 .socail-icons i,
footer.style-6 .socail-icons .fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: inherit;
    font-size: 17px;
}

footer.style-6 .socail-icons .img-icon {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

footer.style-6 .foot {
    margin-top: 52px;
    padding: 23px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

footer.style-6 .foot .row {
    align-items: center;
    row-gap: 18px;
}

footer.style-6 .foot .logo {
    display: flex;
    align-items: center;
}

footer.style-6 .foot .logo img,
footer.style-6 .logo-footer-m {
    display: block;
    width: auto;
    max-width: 135px;
    max-height: 56px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

footer.style-6 .foot .small {
    display: block;
    color: rgba(255, 255, 255, 0.60);
    font-size: 12px;
    line-height: 2;
}

footer.style-6 .foot .small a {
    color: #f0cf83;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */

.to_top {
    position: fixed;
    z-index: 100;
    right: 24px;
    bottom: 24px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px !important;
    height: 46px !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 15px !important;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
    box-shadow: 0 12px 28px rgba(11, 63, 44, 0.26);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.to_top:hover {
    transform: translateY(-4px);
    box-shadow: 0 17px 34px rgba(11, 63, 44, 0.32);
}

.to_top i {
    color: #fff !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .contact-page.style-5 .style-login {
        min-height: 640px;
        padding: 58px 20px 74px;
    }

    .contact-page.style-5 .style-login::before {
        width: 130px;
        height: 130px;
        top: 95px;
        left: -35px;
        opacity: 0.25;
    }

    footer.style-6 {
        padding-top: 58px;
    }

    footer.style-6 .items {
        padding: 0;
    }

    footer.style-6 .foot {
        margin-top: 38px;
    }
}

@media (max-width: 575.98px) {
    .contact-page.style-5 {
        min-height: 650px;
    }

    .contact-page.style-5 .style-login {
        min-height: 620px;
        padding: 42px 14px 60px;
    }

    .contact-page.style-5 .community {
        margin-bottom: 26px;
    }

    .contact-page.style-5 .section-head h2 {
        padding-bottom: 14px;
        font-size: 25px;
    }

    .contact-page.style-5 .section-head h2::after {
        width: 58px;
        height: 4px;
    }

    .contact-page.style-5 .page-links {
        margin-top: 14px;
        font-size: 12px;
    }

    .contact-page.style-5 #signUpForm1 {
        padding: 30px 20px 24px;
        border-radius: 24px;
        box-shadow: 0 18px 50px rgba(11, 63, 44, 0.13);
    }

    .contact-page.style-5 #signUpForm1::before {
        right: 22px;
        left: 22px;
    }

    .contact-page.style-5 #signUpForm1 .step h5 {
        margin-bottom: 25px !important;
    }

    .contact-page.style-5 #signUpForm1 .step h5 img {
        max-width: 112px !important;
    }

    .contact-page.style-5 #signUpForm1 input[type="text"],
    .contact-page.style-5 #signUpForm1 input[type="password"],
    .contact-page.style-5 #signUpForm1 input[type="email"],
    .contact-page.style-5 #signUpForm1 input[type="tel"] {
        height: 54px;
        padding: 0 15px;
        line-height: 54px;
        border-radius: 14px;
    }

    .contact-page.style-5 #ContentPlaceHolder1_nextBtn,
    .contact-page.style-5 #signUpForm1 input[type="submit"],
    .contact-page.style-5 #signUpForm1 .btn-primary {
        min-height: 54px;
        border-radius: 14px;
    }

    footer.style-6 {
        padding-top: 50px;
    }

    footer.style-6 .items .title {
        margin-bottom: 18px;
    }

    footer.style-6 .foot {
        margin-top: 30px;
        text-align: center;
    }

    footer.style-6 .foot .logo {
        justify-content: center;
    }

    footer.style-6 .foot .small {
        text-align: center;
    }

    .to_top {
        right: 16px;
        bottom: 16px;
        width: 42px !important;
        height: 42px !important;
        border-radius: 13px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-page.style-5 *,
    footer.style-6 *,
    .to_top,
    #loader .spinner {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
