/* ───────────────────── */
/* Load Peyda font for LOGIN page */
@font-face {
  font-family: 'PeydaWebFaNum';
  src: url('/wp-content/themes/kocholofood-child/fonts/PeydaWebFaNum-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'PeydaWebFaNum';
  src: url('/wp-content/themes/kocholofood-child/fonts/PeydaWebFaNum-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'PeydaWebFaNum';
  src: url('/wp-content/themes/kocholofood-child/fonts/PeydaWebFaNum-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'PeydaWebFaNum';
  src: url('/wp-content/themes/kocholofood-child/fonts/PeydaWebFaNum-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'PeydaWebFaNum';
  src: url('/wp-content/themes/kocholofood-child/fonts/PeydaWebFaNum-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'PeydaWebFaNum';
  src: url('/wp-content/themes/kocholofood-child/fonts/PeydaWebFaNum-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'PeydaWebFaNum';
  src: url('/wp-content/themes/kocholofood-child/fonts/PeydaWebFaNum-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'PeydaWebFaNum';
  src: url('/wp-content/themes/kocholofood-child/fonts/PeydaWebFaNum-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
}
/* -------------------------------------------------- */
/*                   GLOBAL FONT                      */
/* -------------------------------------------------- */
body.login,
body.login * {
    font-family: 'PeydaWebFaNum', sans-serif !important;
}

/* -------------------------------------------------- */
/*                 BACKGROUND + LAYOUT                */
/* -------------------------------------------------- */
body.login {
    background: linear-gradient(135deg, #ff5858, #ff736b, #ff9966);
    min-height: 100vh;
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction:column;
}

/* -------------------------------------------------- */
/*                         LOGO                        */
/* -------------------------------------------------- */
body.login h1 a {
    background-image: url('https://kocholofood.com/wp-content/uploads/2024/09/cropped-kocholo_png_logo.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    width: 160px !important;
    height: 160px !important;
    border-radius: 100%;
    margin-bottom: 25px !important;
    box-shadow: 0 8px 35px rgba(0,0,0,0.25);
}

/* -------------------------------------------------- */
/*                    LOGIN FORM WRAPPER              */
/* -------------------------------------------------- */

#login {
    width: 50%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#loginform {
    width: 440px !important;
    padding: 40px 35px !important;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 28px !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    margin-bottom: 25px !important;
}

/* -------------------------------------------------- */
/*                      LABELS                         */
/* -------------------------------------------------- */
.login .button.wp-hide-pw .dashicons {
    top : -7px !important;
}
#loginform label {
    color: #fff !important;
    display: block;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin-bottom: 6px;
    text-align: right !important;
}
.forgetmenot label {
    padding : 0px !important;
}
/* -------------------------------------------------- */
/*                INPUTS + AUTO RTL/LTR               */
/* -------------------------------------------------- */
#loginform input[type="text"],
#loginform input[type="password"] {
    width: 100% !important;
    height: 48px !important;
    background: rgba(255,255,255,0.25) !important;
    color: #fff !important;
    padding: 0 18px !important;
    padding-right: 45px !important; /* space for eye icon */
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    font-size: 15px !important;
    direction: rtl !important;
    transition: .25s ease;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    background: rgba(255,255,255,0.32) !important;
    border-color: #fff !important;
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
    direction: ltr !important;
}

/* Autofill Chrome */
input:-webkit-autofill {
    background-color: rgba(255,255,255,0.3) !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 0 0 1000px rgba(255,255,255,0.25) inset !important;
}

/* -------------------------------------------------- */
/*                     PASSWORD ICON                  */
/* -------------------------------------------------- */
.wp-pwd {
    position: relative !important;
}

.wp-pwd .wp-hide-pw {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    height: 22px !important;
    width: 22px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    z-index: 3 !important;
}

.wp-pwd .dashicons {
    width: 20px !important;
    height: 20px !important;
    color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

/* eye open */
.wp-pwd .dashicons-visibility {
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 12.5c-2.48 0-4.5-2.02-4.5-4.5S9.52 8 12 8s4.5 2.02 4.5 4.5S14.48 17 12 17z'/></svg>");
}

/* eye closed */
.wp-pwd .dashicons-hidden {
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M2 3l19 19M4.6 6.8C3.2 8.2 2.2 10 2 12c1.73 4.39 6 7.5 10 7.5 2.1 0 4.07-.53 5.79-1.48M9.5 9.5a4 4 0 0 0 5 5'/></svg>");
}

/* -------------------------------------------------- */
/*                     SUBMIT BUTTON                  */
/* -------------------------------------------------- */
#wp-submit {
    width: 100% !important;
    height: 48px !important;
    background: linear-gradient(135deg, #ff9c58, #ff576f) !important;
    border: none !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
    cursor: pointer;
    transition: .25s;
}

#wp-submit:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

/* -------------------------------------------------- */
/*                   BLUE SMS BUTTON                  */
/* -------------------------------------------------- */
.button.button-primary.button-large {
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0068e5, #0098ff) !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 12px !important;
    transition: .2s;
}

.button.button-primary.button-large:hover {
    opacity: .9;
}

/* -------------------------------------------------- */
/*                     FOOTER LINKS                   */
/* -------------------------------------------------- */
body.login p {
    text-align: center !important;
}

body.login p a {
    color: #ffffffcc !important;
    font-size: 14px !important;
    text-decoration: none !important;
    font-family: 'PeydaWebFaNum' !important;
}

body.login p a:hover {
    color: #fff !important;
}

/* -------------------------------------------------- */
/*               LANGUAGE SWITCHER FIX                */
/* -------------------------------------------------- */
/* -------------------------------------- */
/*   ULTIMATE CENTER FIX FOR LANG BOX     */
/* -------------------------------------- */

.language-switcher {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.language-switcher form {
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 auto !important;
}

/* make sure it's NOT floating left */
.language-switcher,
.language-switcher form,
.language-switcher label,
.language-switcher select {
    float: none !important;
}

/* small style cleanup */
.language-switcher select,
.language-switcher input[type="submit"] {
    border-radius: 10px !important;
    height: 38px !important;
    font-size: 14px !important;
    padding: 6px 12px !important;
}
p.forgetmenot {
    display: flex;
    align-items: center;
}

/* ────────────────────────────────────────────────── */
/*                   RESPONSIVE LAYOUT               */
/* ────────────────────────────────────────────────── */

/* ---------- 1) زیر 1100px ---------- */
@media (max-width: 1100px) {
    #login {
        width: 70% !important;
    }

    #loginform {
        width: 75% !important;
    }
}


/* ---------- 2) تبلت — زیر 768px ---------- */
@media (max-width: 768px) {

    body.login {
        padding: 20px;
        justify-content: flex-start;
        padding-top: 40px;
    }

    #login {
        width: 100% !important;
    }

    #loginform {
        width: 90% !important;
        padding: 32px 26px !important;
        border-radius: 22px !important;
        margin-top: 10px !important;
    }

    body.login h1 a {
        width: 130px !important;
        height: 130px !important;
        margin-bottom: 15px !important;
    }

    #loginform input[type="text"],
    #loginform input[type="password"] {
        height: 46px !important;
        font-size: 14px !important;
    }

    #wp-submit,
    .button.button-primary.button-large {
        height: 46px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
    }

    body.login p a {
        font-size: 13px !important;
    }
}


/* ---------- 3) موبایل — زیر 480px ---------- */
@media (max-width: 480px) {

    body.login {
        padding-top: 20px !important;
    }

    body.login h1 a {
        width: 110px !important;
        height: 110px !important;
    }

    #loginform {
        width: 100% !important;
        padding: 28px 22px !important;
        border-radius: 18px !important;
    }

    #loginform label {
        font-size: 14px !important;
    }

    #loginform input[type="text"],
    #loginform input[type="password"] {
        height: 42px !important;
        font-size: 13.5px !important;
        padding: 0 16px !important;
    }

    .wp-pwd .wp-hide-pw {
        right: 10px !important;
    }

    #wp-submit,
    .button.button-primary.button-large {
        height: 44px !important;
        font-size: 13.5px !important;
    }

    /* Language Switcher on Mobile */
    .language-switcher form {
        flex-direction: row !important;
        gap: 6px !important;
    }

    .language-switcher select,
    .language-switcher input[type="submit"] {
        height: 34px !important;
        font-size: 13px !important;
        padding: 4px 10px !important;
    }
}


/* ---------- 4) موبایل خیلی کوچک — زیر 360px ---------- */
@media (max-width: 360px) {
    body.login h1 a {
        width: 95px !important;
        height: 95px !important;
    }

    #loginform {
        padding: 24px 18px !important;
    }

    #loginform input[type="text"],
    #loginform input[type="password"] {
        height: 40px !important;
        font-size: 13px !important;
    }

    #wp-submit,
    .button.button-primary.button-large {
        height: 40px !important;
        font-size: 12.5px !important;
    }
}
