﻿/* IMEI Sol login redesign
   Load this AFTER bootstrap.min.css, style.css and responsive.css.
   It intentionally preserves the existing login JS hooks and only changes presentation. */

:root {
    --auth-orange: #F76D49;
    --auth-orange-dark: #ef5d38;
    --auth-pink: #EF476E;
    --auth-ink: #151a27;
    --auth-text: #5f6673;
    --auth-border: #e7e9ef;
}

.auth-page,
.auth-page * {
    box-sizing: border-box;
    font-family: Poppins,"Segoe UI",Arial,sans-serif;
}

.auth-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg,#fff 0%,#fff1f5 54%,#f8faff 100%);
    color: #242733;
}

    /* ---------- Header ---------- */
    .auth-page .auth-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        width: 100%;
        background: rgba(255,255,255,.97);
        box-shadow: 0 8px 24px rgba(17,24,39,.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .auth-page .auth-header-inner {
        padding-left: max(24px,calc((100vw - 1180px)/2));
        padding-right: max(24px,calc((100vw - 1180px)/2));
    }

    .auth-page .auth-navbar {
        min-height: 82px;
        padding: 0;
        background: transparent !important;
    }

    .auth-page .auth-logo {
        margin: 0;
        padding: 0;
    }

        .auth-page .auth-logo img {
            display: block;
            width: auto;
            height: 46px;
            object-fit: contain;
        }

    .auth-page .auth-nav {
        align-items: center;
        gap: 4px;
    }

        .auth-page .auth-nav .nav-link {
            padding: 10px 13px !important;
            color: #303441 !important;
            font-size: 14px;
            font-weight: 500;
            text-decoration: none;
            transition: color .2s ease,background .2s ease,transform .2s ease;
        }

            .auth-page .auth-nav .nav-link:hover {
                color: var(--auth-pink) !important;
            }

        .auth-page .auth-nav .auth-register-link {
            margin-left: 8px;
            font-weight: 700;
        }

        .auth-page .auth-nav .auth-login-link {
            min-width: 86px;
            margin-left: 2px;
            padding: 10px 20px !important;
            border-radius: 24px;
            background: var(--auth-orange);
            color: #fff !important;
            text-align: center;
            font-weight: 700;
            box-shadow: 0 12px 24px rgba(247,109,73,.24);
        }

            .auth-page .auth-nav .auth-login-link:hover,
            .auth-page .auth-nav .auth-login-link.active {
                background: var(--auth-orange-dark);
                color: #fff !important;
            }

    /* ---------- Main auth layout ---------- */
    .auth-page .auth-shell {
        position: relative;
        overflow: hidden;
        min-height: calc(100vh - 82px);
        display: grid;
        grid-template-columns: minmax(0,1fr) 460px;
        gap: 54px;
        align-items: center;
        max-width: 1180px;
        margin: 0 auto;
        padding: 78px 24px;
    }

        .auth-page .auth-shell::before {
            content: "";
            position: absolute;
            z-index: 0;
            width: 560px;
            height: 560px;
            right: -270px;
            top: 70px;
            border-radius: 50%;
            background: linear-gradient(135deg,rgba(239,71,110,.18),rgba(247,109,73,.12));
            pointer-events: none;
        }

        .auth-page .auth-shell::after {
            content: "";
            position: absolute;
            z-index: 0;
            width: 360px;
            height: 360px;
            left: -250px;
            bottom: -190px;
            border-radius: 50%;
            background: linear-gradient(135deg,rgba(36,88,255,.08),rgba(239,71,110,.10));
            pointer-events: none;
        }

    .auth-page .auth-copy,
    .auth-page .auth-card {
        position: relative;
        z-index: 1;
    }

    .auth-page .auth-kicker {
        display: block;
        color: var(--auth-pink);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .22em;
/*        text-transform: uppercase;*/
    }

    .auth-page .auth-copy h1 {
        max-width: 620px;
        margin: 14px 0 18px;
        color: var(--auth-ink);
        font-size: 44px;
        line-height: 1.12;
        font-weight: 800;
        letter-spacing: -.045em;
    }

    .auth-page .auth-copy > p {
        max-width: 640px;
        margin: 0;
        color: var(--auth-text);
        font-size: 18px;
        line-height: 1.7;
    }

    .auth-page .auth-points {
        display: grid;
        gap: 14px;
        margin: 30px 0 0;
        padding: 0;
    }

        .auth-page .auth-points li {
            list-style: none;
            color: #3c4250;
            font-size: 15px;
        }

            .auth-page .auth-points li::before {
                content: "✓";
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 22px;
                height: 22px;
                margin-right: 10px;
                border-radius: 50%;
                background: var(--auth-orange);
                color: #fff;
                font-size: 12px;
                font-weight: 800;
                vertical-align: middle;
            }

    /* ---------- Login card ---------- */
    .auth-page .auth-card {
        width: 100%;
        padding: 38px;
        border: 1px solid #fff1f5;
        border-radius: 24px;
        background: rgba(255,255,255,.94);
        box-shadow: 0 24px 60px rgba(239,71,110,.12);
    }

        .auth-page .auth-card h2 {
            margin: 0 0 8px;
            color: var(--auth-ink);
            font-size: 30px;
            line-height: 1.2;
            font-weight: 800;
            letter-spacing: -.03em;
        }

        .auth-page .auth-card > p:first-of-type {
            margin: 0 0 28px;
            color: #6b7280;
            font-size: 15px;
            line-height: 1.6;
        }

    .auth-page .auth-form {
        display: grid;
        gap: 16px;
    }

    .auth-page .auth-field {
        text-align: left;
    }

        .auth-page .auth-field label {
            display: block;
            margin: 0 0 7px;
            color: #303441;
            font-size: 13px;
            font-weight: 700;
        }

    /* Keep existing .mail_text class/JS compatibility, but override old visual styles. */
    .auth-page .auth-card .mail_text {
        display: block !important;
        width: 100% !important;
        height: 50px !important;
        margin: 0 !important;
        padding: 0 15px !important;
        border: 1px solid #e2e6ef !important;
        border-radius: 14px !important;
        background: #fff !important;
        color: var(--auth-ink) !important;
        font-size: 15px !important;
        line-height: 50px !important;
        outline: none !important;
        box-shadow: none !important;
        transition: border-color .2s ease,box-shadow .2s ease;
    }

        .auth-page .auth-card .mail_text::placeholder {
            color: #a3a8b2;
            opacity: 1;
        }

        .auth-page .auth-card .mail_text:focus {
            border-color: var(--auth-orange) !important;
            box-shadow: 0 0 0 4px rgba(247,109,73,.12) !important;
        }

    .auth-page .auth-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: 2px 0 6px;
        color: #6b7280;
        font-size: 13px;
    }

        .auth-page .auth-row a,
        .auth-page .auth-switch a {
            color: var(--auth-orange) !important;
            text-decoration: none !important;
            font-weight: 800;
        }

            .auth-page .auth-row a:hover,
            .auth-page .auth-switch a:hover {
                color: var(--auth-orange-dark) !important;
            }

    .auth-page .auth-submit-wrap {
        display: block;
        width: 100%;
        margin: 0;
    }

        .auth-page .auth-submit-wrap .send_bt,
        .auth-page .auth-submit-wrap .send_bt::before,
        .auth-page .auth-submit-wrap .send_bt::after {
            float: none !important;
        }

        .auth-page .auth-submit-wrap .send_bt {
            width: 100%;
            margin: 0 !important;
        }

            .auth-page .auth-submit-wrap .send_bt a {
                display: flex !important;
                align-items: center;
                justify-content: center;
                width: 100% !important;
                height: 52px;
                margin: 0 !important;
                padding: 0 24px !important;
                border: 0 !important;
                border-radius: 26px !important;
                background: var(--auth-orange) !important;
                color: #fff !important;
                font-size: 16px !important;
                font-weight: 800 !important;
                text-decoration: none !important;
                box-shadow: 0 14px 28px rgba(247,109,73,.24) !important;
                cursor: pointer;
                transition: background .2s ease,transform .2s ease,box-shadow .2s ease;
            }

                .auth-page .auth-submit-wrap .send_bt a:hover {
                    background: var(--auth-orange-dark) !important;
                    color: #fff !important;
                    transform: translateY(-1px);
                    box-shadow: 0 17px 32px rgba(247,109,73,.28) !important;
                }

    .auth-page .auth-switch {
        margin: 22px 0 0 !important;
        text-align: center;
        color: #6b7280 !important;
        font-size: 14px !important;
    }

    /* ---------- Existing footer, softened to match the new page ---------- */
    .auth-page .auth-footer {
        padding: 50px 0 36px !important;
        background: #151a27 !important;
    }

        .auth-page .auth-footer .footer_logo h1 {
            margin: 0 0 28px;
            color: #fff;
            font-size: 30px;
            font-weight: 800;
        }

        .auth-page .auth-footer .useful_text,
        .auth-page .auth-footer .footer_text,
        .auth-page .auth-footer .location_text a,
        .auth-page .auth-footer .footer_social_icon a {
            font-family: Poppins,"Segoe UI",Arial,sans-serif !important;
        }

        .auth-page .auth-footer .useful_text {
            color: #fff !important;
        }

        .auth-page .auth-footer .footer_text,
        .auth-page .auth-footer .location_text a {
            color: #c7cbd4 !important;
        }

            .auth-page .auth-footer .footer_social_icon a:hover,
            .auth-page .auth-footer .location_text a:hover {
                color: var(--auth-orange) !important;
            }

    .auth-page .auth-copyright {
        background: #10141e !important;
    }

        .auth-page .auth-copyright .copyright_text {
            color: #aeb4c0 !important;
        }

            .auth-page .auth-copyright .copyright_text a {
                color: var(--auth-orange) !important;
            }

/* ---------- Responsive ---------- */
@media (max-width:991.98px) {
    .auth-page .auth-header-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .auth-page .auth-navbar {
        min-height: 74px;
    }

    .auth-page .navbar-toggler {
        border: 0;
        padding: 7px 9px;
        outline: none !important;
        box-shadow: none !important;
    }

    .auth-page .navbar-collapse {
        margin-top: 12px;
        padding: 16px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 15px 35px rgba(30,40,70,.13);
    }

    .auth-page .auth-nav {
        align-items: stretch;
    }

        .auth-page .auth-nav .auth-register-link,
        .auth-page .auth-nav .auth-login-link {
            margin-left: 0;
        }

        .auth-page .auth-nav .auth-login-link {
            margin-top: 5px;
        }

    .auth-page .auth-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 54px 20px 64px;
    }

    .auth-page .auth-copy {
        text-align: center;
    }

        .auth-page .auth-copy h1,
        .auth-page .auth-copy > p {
            margin-left: auto;
            margin-right: auto;
        }

    .auth-page .auth-points {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .auth-page .auth-card {
        max-width: 520px;
        margin: auto;
    }
}

@media (max-width:560px) {
    .auth-page .auth-header-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .auth-page .auth-navbar {
        min-height: 68px;
    }

    .auth-page .auth-logo img {
        height: 38px;
    }

    .auth-page .auth-shell {
        padding: 42px 16px 52px;
    }

    .auth-page .auth-copy h1 {
        font-size: 34px;
    }

    .auth-page .auth-copy > p {
        font-size: 16px;
    }

    .auth-page .auth-card {
        padding: 26px;
        border-radius: 20px;
    }

        .auth-page .auth-card h2 {
            font-size: 26px;
        }

    .auth-page .auth-row {
        display: grid;
        gap: 10px;
    }

        .auth-page .auth-row .create-account-link {
            order: 2;
        }

    .auth-page .auth-footer {
        padding-top: 38px !important;
    }
}


/* =====================================================
   NAVBAR - THREE SEPARATE SECTIONS
   Logo | Main Navigation | Login/Register
   ===================================================== */

.auth-page .auth-topbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


    .auth-page .auth-topbar .navbar {
        width: min(1180px, calc(100% - 48px));
        min-height: 82px;
        margin: 0 auto;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: transparent !important;
    }


/* Logo */

.auth-page .nav-logo-section {
    flex: 0 0 auto;
}


.auth-page .auth-logo {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}


.auth-page .logo-img {
    width: auto;
    height: 46px;
    display: block;
    object-fit: contain;
}


/* Navbar collapse */

.auth-page .auth-navbar-collapse {
    flex: 1;
    align-items: center;
    justify-content: space-between;
    margin-left: 70px;
}


/* Main center menu */

.auth-page .nav-main-section {
    flex: 1;
    display: flex;
    justify-content: center;
}


.auth-page .auth-main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 0;
}


/* Account section */

.auth-page .nav-account-section {
    flex: 0 0 auto;
    margin-left: 45px;
}


.auth-page .auth-account-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}


    /* =====================================================
   NEVER AUTOMATICALLY UPPERCASE NAVBAR ITEMS
   ===================================================== */

    .auth-page .navbar a,
    .auth-page .navbar-nav a,
    .auth-page .navbar-nav .nav-link,
    .auth-page .auth-main-nav .nav-link,
    .auth-page .auth-account-nav a {
        text-transform: none !important;
        letter-spacing: normal !important;
    }


/* Main menu */

.auth-page .auth-main-nav .nav-link {
    padding: 12px 4px !important;
    color: #303441 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}


    .auth-page .auth-main-nav .nav-link:hover {
        color: #F76D49 !important;
    }


/* Register/Login list */

.auth-page .auth-account-nav li {
    display: flex;
    align-items: center;
}


.auth-page .auth-account-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}


.auth-page .register-action {
    color: #303441 !important;
}


    .auth-page .register-action:hover,
    .auth-page .register-action.active {
        color: #F76D49 !important;
    }


.auth-page .login-action {
    min-width: 92px;
    background: #F76D49;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(247, 109, 73, 0.24);
}


    .auth-page .login-action:hover {
        background: #ef5d38;
        color: #ffffff !important;
    }