/* =========================================================
   ALAQ OFFICIAL LOGIN
   CUSTOMER + ADMIN
========================================================= */


/* =========================================================
   BRAND COLORS
========================================================= */

:root {
    --alaq-deep: #041e1d;

    --alaq-dark: #06302e;

    --alaq-green: #0b4a47;

    --alaq-green-soft: #145d58;

    --alaq-ivory: #f4f0e7;

    --alaq-cream: #e8e1d5;

    --alaq-white: #fffdf8;

    --alaq-text: #123230;

    --alaq-muted: #708481;

    --alaq-border:
        rgba(
            6,
            48,
            46,
            0.14
        );

    --alaq-border-strong:
        rgba(
            6,
            48,
            46,
            0.26
        );

    --alaq-shadow:
        0 25px 60px
        rgba(
            4,
            30,
            29,
            0.10
        );

    --alaq-danger: #a63d38;

    --alaq-danger-bg: #fff3f1;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html {
    min-height: 100%;

    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    margin: 0;

    font-family:
        "Poppins",
 !important;

    color:
        var(--alaq-text);

    background:
        var(--alaq-ivory);
}


a {
    color: inherit;

    text-decoration: none;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


img {
    display: block;

    max-width: 100%;
}


/* =========================================================
   PAGE LAYOUT
========================================================= */

.login-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(
            0,
            1.08fr
        )
        minmax(
            430px,
            0.92fr
        );

    background:
        var(--alaq-ivory);
}


/* =========================================================
   LEFT BRAND / VISUAL SIDE
========================================================= */

.login-visual {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    padding:
        48px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    color:
        var(--alaq-ivory);

    background:
        linear-gradient(
            145deg,
            var(--alaq-green),
            var(--alaq-deep)
        );
}


/* =========================================================
   DECORATIVE GLOW
========================================================= */

.login-visual::before {
    content: "";

    position: absolute;

    width: 650px;

    height: 650px;

    top: -250px;

    right: -220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(
                244,
                240,
                231,
                0.13
            ),
            rgba(
                244,
                240,
                231,
                0
            )
            68%
        );

    pointer-events: none;
}


/* =========================================================
   SECOND DECORATION
========================================================= */

.login-visual::after {
    content: "";

    position: absolute;

    width: 470px;

    height: 470px;

    left: -190px;

    bottom: -170px;

    border-radius: 50%;

    border:
        1px solid
        rgba(
            244,
            240,
            231,
            0.10
        );

    box-shadow:
        0 0 0 55px
        rgba(
            244,
            240,
            231,
            0.02
        );

    pointer-events: none;
}


/* =========================================================
   LOGO
========================================================= */

.login-brand {
    position: relative;

    z-index: 2;

    width: 112px;

    display: inline-flex;

    align-items: center;

    justify-content: center;
}


.login-brand img {
    width: 100%;

    max-height: 88px;

    object-fit: contain;
}


/*
   Fallback if you still use:
   <div class="logo">ALAQ</div>
*/

.logo {
    position: relative;

    z-index: 2;

    color:
        var(--alaq-ivory);



    font-size: 30px;

    font-weight: 700;

    letter-spacing: 5px;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.login-visual-content {
    position: relative;

    z-index: 2;

    max-width: 610px;
}


/* =========================================================
   ROLE BADGE
========================================================= */

.login-role-badge {
    width: fit-content;

    margin-bottom: 23px;

    padding:
        8px
        13px;

    border:
        1px solid
        rgba(
            244,
            240,
            231,
            0.20
        );

    background:
        rgba(
            244,
            240,
            231,
            0.06
        );

    color:
        var(--alaq-cream);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


/* =========================================================
   LEFT HEADING
========================================================= */

.login-visual-content h1 {
    max-width: 620px;

    margin:
        0
        0
        22px;

    color:
        var(--alaq-ivory);



    font-size:
        clamp(
            46px,
            5.4vw,
            76px
        );

    font-weight: 400;

    line-height: 0.98;

    letter-spacing: -2px;
}


/* =========================================================
   LEFT DESCRIPTION
========================================================= */

.login-visual-content p {
    max-width: 510px;

    margin: 0;

    color:
        rgba(
            244,
            240,
            231,
            0.67
        );

    font-size: 15px;

    line-height: 1.9;
}


/* =========================================================
   LEFT FOOTER
========================================================= */

.login-visual-footer {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    color:
        rgba(
            244,
            240,
            231,
            0.45
        );

    font-size: 11px;
}


.login-visual-footer a {
    color:
        var(--alaq-cream);

    transition:
        opacity
        0.2s ease;
}


.login-visual-footer a:hover {
    opacity: 0.7;
}


/* =========================================================
   RIGHT PANEL
========================================================= */

.login-panel {
    min-height: 100vh;

    padding:
        52px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        var(--alaq-white);
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    width: 100%;

    max-width: 450px;
}


/* =========================================================
   MOBILE LOGO
========================================================= */

.login-mobile-logo {
    display: none;

    margin-bottom: 26px;
}


.login-mobile-logo a {
    display: inline-block;
}


.login-mobile-logo img {
    width: 90px;

    max-height: 68px;

    object-fit: contain;
}


/* =========================================================
   LOGIN CARD HEADER
========================================================= */

.login-card-header {
    margin-bottom: 34px;
}


.login-card-header > span,
.login-card-header .login-eyebrow {
    display: block;

    margin-bottom: 11px;

    color:
        var(--alaq-green-soft);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.login-card-header h2 {
    margin:
        0
        0
        12px;

    color:
        var(--alaq-deep);

    font-size: 39px;

    font-weight: 400;

    line-height: 1.05;

    letter-spacing: -1px;
}


.login-card-header p {
    max-width: 390px;

    margin: 0;

    color:
        var(--alaq-muted);

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    color:
        var(--alaq-deep);

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   INPUTS
========================================================= */

.form-group input {
    width: 100%;

    height: 52px;

    padding:
        0
        15px;

    border:
        1px solid
        var(--alaq-border);

    border-radius: 0;

    outline: none;

    background:
        var(--alaq-white);

    color:
        var(--alaq-text);

    transition:
        border-color
        0.2s ease,
        box-shadow
        0.2s ease,
        background
        0.2s ease;
}


.form-group input::placeholder {
    color:
        #a8b2b0;
}


.form-group input:hover {
    border-color:
        var(--alaq-border-strong);
}


.form-group input:focus {
    border-color:
        var(--alaq-green);

    background:
        #ffffff;

    box-shadow:
        0 0 0 3px
        rgba(
            11,
            74,
            71,
            0.08
        );
}


/* =========================================================
   AUTOFILL
========================================================= */

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color:
        var(--alaq-text);

    box-shadow:
        0 0 0 1000px
        var(--alaq-white)
        inset;

    transition:
        background-color
        9999s ease-in-out
        0s;
}


/* =========================================================
   PASSWORD WRAPPER
========================================================= */

.password-wrapper {
    position: relative;
}


.password-wrapper input {
    padding-right: 76px;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;

    top: 50%;

    right: 12px;

    transform:
        translateY(-50%);

    padding:
        6px
        7px;

    border: 0;

    background: transparent;

    color:
        var(--alaq-green);

    font-size: 11px;

    font-weight: 800;

    transition:
        color
        0.2s ease;
}


.password-toggle:hover {
    color:
        var(--alaq-deep);
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

.error-message {
    min-height: 20px;

    margin:
        -3px
        0
        15px;

    color:
        var(--alaq-danger);

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   OPTIONAL ALERT BOX
========================================================= */

.login-alert {
    display: none;

    margin-bottom: 20px;

    padding:
        13px
        14px;

    border:
        1px solid
        rgba(
            166,
            61,
            56,
            0.22
        );

    background:
        var(--alaq-danger-bg);

    color:
        var(--alaq-danger);

    font-size: 12px;

    line-height: 1.6;
}


.login-alert.show {
    display: block;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
    width: 100%;

    height: 52px;

    border:
        1px solid
        var(--alaq-green);

    border-radius: 0;

    background:
        var(--alaq-green);

    color:
        var(--alaq-white);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.4px;

    transition:
        transform
        0.15s ease,
        background
        0.2s ease,
        border-color
        0.2s ease,
        box-shadow
        0.2s ease,
        opacity
        0.15s ease;
}


.login-button:hover {
    transform:
        translateY(-1px);

    border-color:
        var(--alaq-deep);

    background:
        var(--alaq-deep);

    box-shadow:
        0 12px 30px
        rgba(
            4,
            30,
            29,
            0.14
        );
}


.login-button:active {
    transform:
        translateY(0);

    box-shadow: none;
}


.login-button:disabled {
    opacity: 0.55;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   DIVIDER
========================================================= */

.login-divider {
    margin:
        28px
        0;

    display: flex;

    align-items: center;

    gap: 14px;

    color:
        #99a6a3;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 1px;
}


.login-divider::before,
.login-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background:
        var(--alaq-border);
}


/* =========================================================
   REGISTER SECTION
========================================================= */

.login-register {
    text-align: center;

    color:
        var(--alaq-muted);

    font-size: 12px;

    line-height: 1.7;
}


.login-register a {
    color:
        var(--alaq-green);

    font-weight: 800;

    transition:
        color
        0.2s ease;
}


.login-register a:hover {
    color:
        var(--alaq-deep);
}


/* =========================================================
   LOGIN NOTE
========================================================= */

.login-note {
    margin-top: 24px;

    text-align: center;

    color:
        #9ba7a5;

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   BACK TO SHOP
========================================================= */

.back-to-shop {
    margin-top: 27px;

    text-align: center;
}


.back-to-shop a {
    color:
        var(--alaq-green);

    font-size: 11px;

    font-weight: 700;

    transition:
        color
        0.2s ease;
}


.back-to-shop a:hover {
    color:
        var(--alaq-deep);
}


/* =========================================================
   OPTIONAL FORM ROW
   Remember me / Forgot password
========================================================= */

.form-row-between {
    margin:
        -2px
        0
        22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.remember-me {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color:
        var(--alaq-muted);

    font-size: 11px;
}


.remember-me input {
    accent-color:
        var(--alaq-green);
}


.forgot-password {
    color:
        var(--alaq-green);

    font-size: 11px;

    font-weight: 700;
}


.forgot-password:hover {
    color:
        var(--alaq-deep);
}


/* =========================================================
   ADMIN APPEARANCE

   Same official login page.
   Add class dynamically only if needed:
   .admin-login

   Normally not required because the role is known
   only AFTER login.
========================================================= */

.login-page.admin-login
.login-visual {
    background:
        linear-gradient(
            145deg,
            #063532,
            #021918
        );
}


.login-page.admin-login
.login-button {
    border-color:
        var(--alaq-deep);

    background:
        var(--alaq-deep);
}


.login-page.admin-login
.login-button:hover {
    border-color:
        var(--alaq-green);

    background:
        var(--alaq-green);
}


/* =========================================================
   CUSTOMER APPEARANCE
========================================================= */

.login-page.customer-login
.login-visual {
    background:
        linear-gradient(
            145deg,
            var(--alaq-green),
            var(--alaq-deep)
        );
}


/* =========================================================
   RTL
========================================================= */

body[dir="rtl"] {
    font-family:
        "Poppins" !important;
}


body[dir="rtl"]
.login-visual-content h1,
body[dir="rtl"]
.login-card-header h2 {


    letter-spacing: 0;
}


body[dir="rtl"]
.password-wrapper input {
    padding-right: 15px;

    padding-left: 76px;
}


body[dir="rtl"]
.password-toggle {
    right: auto;

    left: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media (
    max-width: 1050px
) {

    .login-page {
        grid-template-columns:
            minmax(
                0,
                1fr
            )
            minmax(
                400px,
                0.92fr
            );
    }


    .login-visual {
        padding:
            40px;
    }


    .login-panel {
        padding:
            38px;
    }


    .login-visual-content h1 {
        font-size:
            clamp(
                42px,
                5vw,
                62px
            );
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (
    max-width: 820px
) {

    .login-page {
        display: block;

        min-height: 100vh;

        background:
            var(--alaq-white);
    }


    .login-visual {
        display: none;
    }


    .login-panel {
        min-height: 100vh;

        padding:
            36px
            22px;

        align-items: center;
    }


    .login-card {
        max-width: 460px;
    }


    .login-mobile-logo {
        display: block;
    }


    .login-card-header h2 {
        font-size: 35px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (
    max-width: 480px
) {

    .login-panel {
        padding:
            28px
            18px;
    }


    .login-card-header {
        margin-bottom: 28px;
    }


    .login-card-header h2 {
        font-size: 31px;
    }


    .form-group {
        margin-bottom: 18px;
    }


    .form-group input,
    .login-button {
        height: 50px;
    }


    .login-divider {
        margin:
            24px
            0;
    }


    .form-row-between {
        align-items:
            flex-start;

        flex-direction: column;
    }

}


/* =========================================================
   EXTRA SMALL
========================================================= */

@media (
    max-width: 360px
) {

    .login-panel {
        padding:
            24px
            14px;
    }


    .login-card-header h2 {
        font-size: 28px;
    }


    .login-card-header p {
        font-size: 12px;
    }

}