
/* ==========================================================
   ESTEEL110 - PREMIUM LOGIN PAGE
   Clean & Consolidated Version
   File: 14-login.css
   Kadence Child + WooCommerce
========================================================== */


/* ==========================================================
   1. LOGIN PAGE BACKGROUND
========================================================== */

body:has(.esteel-login-wrapper) {
    background: #050505 !important;
}

body:has(.esteel-login-wrapper) .site,
body:has(.esteel-login-wrapper) .site-container,
body:has(.esteel-login-wrapper) .content-area,
body:has(.esteel-login-wrapper) .site-main,
body:has(.esteel-login-wrapper) article,
body:has(.esteel-login-wrapper) .entry-content {
    box-shadow: none !important;
    filter: none !important;
}


/* ==========================================================
   2. MAIN WRAPPER
========================================================== */

.esteel-login-wrapper {
    width: 100%;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
    direction: rtl;
    overflow: hidden;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}


/* ==========================================================
   3. LOGIN CARD
========================================================== */

.esteel-login-content {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 480px;
    padding: 42px 42px 35px;
    box-sizing: border-box;
    overflow: hidden;

    background: linear-gradient(
        145deg,
        #151515,
        #0b0b0b
    ) !important;

    border: 1px solid #2d2d2d;
    border-radius: 24px;

    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}


/* Top light */

.esteel-login-content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 12%;
    width: 76%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        #777,
        transparent
    );

    opacity: .65;
    pointer-events: none;
}

.esteel-login-content::after {
    content: none !important;
    display: none !important;
}


/* ==========================================================
   4. BADGE & BRAND
========================================================== */

.esteel-badge {
    display: table;
    margin: 0 auto;
    padding: 7px 16px;
    box-sizing: border-box;

    border-radius: 50px;
    background: linear-gradient(135deg, #242424, #111);
    border: 1px solid #393939;

    color: #a9a9a9;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;

    box-shadow: none !important;
}

.esteel-login-content > h1 {
    margin: 16px 0 8px;
    text-align: center;
    direction: ltr;

    font-size: 38px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 3px;
    color: #eee;

    text-shadow: none !important;
}

.esteel-login-content > h2 {
    margin: 15px 0 10px;
    text-align: center;

    color: #f2f2f2;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.5;
}

.esteel-login-description {
    max-width: 360px;
    margin: 0 auto 30px;

    text-align: center;
    color: #888;
    font-size: 14px;
    line-height: 2;
}


/* ==========================================================
   5. WOOCOMMERCE NOTICES
========================================================== */

.esteel-login-content .woocommerce-error,
.esteel-login-content .woocommerce-message,
.esteel-login-content .woocommerce-info {
    margin: 0 0 22px !important;
    padding: 13px 16px !important;
    box-sizing: border-box;

    border-radius: 12px;
    background: #171717 !important;
    border: 1px solid #353535 !important;

    color: #ddd !important;
    font-size: 13px;
    line-height: 1.8;

    box-shadow: none !important;
}


/* ==========================================================
   6. FORM & ROWS
   Remove unwanted gray backgrounds around form elements
========================================================== */

.esteel-login-form,
.esteel-login-form form {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}

body:has(.esteel-login-wrapper) .esteel-login-form .form-row {
    position: relative;
    isolation: isolate;

    width: 100%;
    margin: 0 0 21px !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

body:has(.esteel-login-wrapper) .esteel-login-form .form-row::before,
body:has(.esteel-login-wrapper) .esteel-login-form .form-row::after {
    content: none !important;
    display: none !important;
}


/* ==========================================================
   7. LABELS
========================================================== */

.esteel-login-form label {
    display: block;
    margin: 0 0 9px;

    color: #d4d4d4;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.esteel-login-form .required {
    color: #aaa !important;
}


/* ==========================================================
   8. INPUT FIELDS
========================================================== */

.esteel-login-form input.input-text {
    position: relative;
    z-index: 1;

    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 54px !important;

    margin: 0 !important;
    padding: 0 17px !important;
    box-sizing: border-box;

    border: 1px solid #303030 !important;
    border-radius: 13px !important;

    background: #111 !important;
    color: #eee !important;

    font-family: inherit;
    font-size: 14px;
    line-height: normal;

    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.esteel-login-form input.input-text::placeholder {
    color: #606060;
}

.esteel-login-form input.input-text:focus {
    border-color: #686868 !important;
    background: #151515 !important;
    box-shadow: none !important;
}


/* ==========================================================
   9. PASSWORD FIELD
========================================================== */

body:has(.esteel-login-wrapper) .esteel-password-field {
    position: relative;
    isolation: isolate;

    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;

    border-radius: 13px;
    background: #111 !important;
    box-shadow: none !important;
}

.esteel-password-field input {
    padding-left: 55px !important;
}

body:has(.esteel-login-wrapper) .esteel-password-field::before,
body:has(.esteel-login-wrapper) .esteel-password-field::after {
    content: none !important;
    display: none !important;
}


/* Password visibility button */

.esteel-password-toggle {
    position: absolute;
    z-index: 2;
    left: 7px;
    top: 50%;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;
    transform: translateY(-50%);

    border: 0 !important;
    border-radius: 10px;

    background: transparent !important;
    color: #777;

    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
    line-height: 1;

    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.esteel-password-toggle:hover {
    color: #ddd;
    background: #202020 !important;
    box-shadow: none !important;
}

.esteel-password-toggle:focus,
.esteel-password-toggle:focus-visible,
.esteel-password-toggle:active {
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
    transform: translateY(-50%) !important;
}

.esteel-password-toggle::before,
.esteel-password-toggle::after {
    content: none !important;
    display: none !important;
}

.esteel-password-toggle::-moz-focus-inner {
    border: 0 !important;
}


/* ==========================================================
   10. LOGIN OPTIONS
========================================================== */

.esteel-login-options {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin: 2px 0 25px;
}

.esteel-remember {
    display: flex !important;
    align-items: center;
    gap: 8px;

    margin: 0 !important;
    color: #888;

    font-size: 12px !important;
    font-weight: 400 !important;
    cursor: pointer;
}

.esteel-remember input {
    width: 16px !important;
    height: 16px !important;

    margin: 0 !important;
    padding: 0 !important;

    accent-color: #aaa;
    box-shadow: none !important;
}

.esteel-forgot-password {
    color: #aaa !important;
    font-size: 12px;
    line-height: 1.6;
    text-decoration: none !important;
}

.esteel-forgot-password:hover {
    color: #fff !important;
}


/* ==========================================================
   11. LOGIN BUTTON
========================================================== */

body:has(.esteel-login-wrapper)
.esteel-login-form .form-row:has(.esteel-login-button) {
    overflow: hidden;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.esteel-login-form .esteel-login-button {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    width: 100% !important;
    max-width: 100% !important;
    min-height: 58px;

    margin: 0 !important;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: hidden;

    border: 1px solid #686868 !important;
    border-radius: 14px !important;

    background: linear-gradient(
        135deg,
        #eee,
        #a9a9a9
    ) !important;

    color: #090909 !important;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;

    text-decoration: none !important;
    cursor: pointer;

    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

.esteel-login-form .esteel-login-button:hover {
    color: #000 !important;

    background: linear-gradient(
        135deg,
        #fff,
        #b8b8b8
    ) !important;

    border-color: #686868 !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

.esteel-login-form .esteel-login-button:focus,
.esteel-login-form .esteel-login-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.esteel-login-form .esteel-login-button:active {
    background: linear-gradient(
        135deg,
        #ddd,
        #a0a0a0
    ) !important;

    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

.esteel-login-form .esteel-login-button::before,
.esteel-login-form .esteel-login-button::after {
    content: none !important;
    display: none !important;
}

.esteel-login-form .esteel-login-button b {
    display: inline-block;
    margin: 0;
    font-size: 20px;
    line-height: 1;
}

.esteel-login-content .esteel-login-button[href*="my-account"] {
    margin-top: 5px !important;
}


/* ==========================================================
   12. REGISTER BOX & LINK
========================================================== */

.esteel-register-box {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 27px;
    padding-top: 23px;
    box-sizing: border-box;

    border-top: 1px solid #242424;
    background: transparent !important;

    color: #777;
    font-size: 13px;
    line-height: 1.8;
}

.esteel-register-box a {
    color: #d1d1d1;
    font-weight: 700;
    text-decoration: none !important;
}

.esteel-register-box a:hover {
    color: #fff;
}

.esteel-register-box a:focus,
.esteel-register-box a:focus-visible,
.esteel-register-box a:active {
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
}

.esteel-register-box a::before,
.esteel-register-box a::after {
    box-shadow: none !important;
    filter: none !important;
}


/* ==========================================================
   13. LOGIN PAGE FOCUS CLEANUP
========================================================== */

body:has(.esteel-login-wrapper)
.esteel-login-content a:focus {
    outline: none !important;
    box-shadow: none !important;
}

body:has(.esteel-login-wrapper) button:focus,
body:has(.esteel-login-wrapper) button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}


/* ==========================================================
   14. DESKTOP
========================================================== */

@media (min-width: 769px) {
    .esteel-login-wrapper {
        min-height: 720px;
    }
}


/* ==========================================================
   15. TABLET
========================================================== */

@media (max-width: 768px) {
    .esteel-login-wrapper {
        min-height: auto;
        padding: 45px 18px;
    }

    .esteel-login-content {
        max-width: 500px;
        padding: 36px 30px 30px;
    }
}


/* ==========================================================
   16. MOBILE
========================================================== */

@media (max-width: 480px) {
    .esteel-login-wrapper {
        padding: 30px 12px;
    }

    .esteel-login-content {
        padding: 30px 20px 25px;
        border-radius: 20px;
    }

    .esteel-login-content > h1 {
        font-size: 32px;
    }

    .esteel-login-content > h2 {
        font-size: 21px;
    }

    .esteel-login-description {
        margin-bottom: 25px;
        font-size: 13px;
    }

    .esteel-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .esteel-login-form .esteel-login-button {
        min-height: 56px;
    }

    .esteel-register-box {
        flex-direction: column;
        gap: 4px;
    }
}


/* ==========================================================
   17. SMALL MOBILE
========================================================== */

@media (max-width: 350px) {
    .esteel-login-content {
        padding-right: 15px;
        padding-left: 15px;
    }

    .esteel-login-content > h1 {
        font-size: 28px;
    }

    .esteel-login-content > h2 {
        font-size: 19px;
    }
}

/* ESTEEL110 - Restore Password Eye Interaction */

body:has(.esteel-login-wrapper) .esteel-password-field {
    position: relative;
}

body:has(.esteel-login-wrapper) .esteel-password-toggle {
    position: absolute !important;
    z-index: 20 !important;
    left: 7px !important;
    top: 50% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 40px !important;
    height: 40px !important;

    padding: 0 !important;
    margin: 0 !important;

    pointer-events: auto !important;
    cursor: pointer !important;

    background: transparent !important;
    color: #aaa !important;
}

body:has(.esteel-login-wrapper) .esteel-password-toggle::before,
body:has(.esteel-login-wrapper) .esteel-password-toggle::after {
    content: none !important;
    display: none !important;
}
