﻿/* =========================================================
   JainsWorld Authentication
   Login + Registration
   ========================================================= */

.jwo-auth-section {
    padding: 75px 0 90px;
    background: var(--secondary-color);
}


/* =========================================================
   MAIN AUTH WRAPPER
   ========================================================= */

.jwo-auth-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    max-width: 1080px;
    margin: 0 auto;
    background: var(--white-color);
    border: 1px solid var(--divider-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(0,0,0,.055);
}


/* =========================================================
   LOGIN SIDE
   ========================================================= */

.jwo-auth-login {
    padding: 48px 50px 45px;
}


/* =========================================================
   LOGIN HEADING
   ========================================================= */

.jwo-auth-heading {
    max-width: 500px;
    margin-bottom: 30px;
}

.jwo-auth-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--accent-color);
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.jwo-auth-heading h1 {
    margin: 0;
    color: var(--primary-color);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 42px;
    line-height: 1.05;
    font-weight: 400;
}

    .jwo-auth-heading h1 span {
        color: var(--accent-color);
    }

.jwo-auth-heading p {
    max-width: 470px;
    margin: 13px 0 0;
    color: var(--text-color);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   FORM
   ========================================================= */

.jwo-login-form {
    max-width: 620px;
}

.jwo-form-group {
    margin-bottom: 19px;
}

    .jwo-form-group label,
    .jwo-register-form label {
        display: block;
        margin-bottom: 7px;
        color: var(--primary-color);
        font-family: "DM Sans", sans-serif;
        font-size: 12px;
        font-weight: 700;
    }

.jwo-input-wrap {
    position: relative;
}

    .jwo-input-wrap > i {
        position: absolute;
        top: 50%;
        left: 15px;
        color: #99928f;
        font-size: 13px;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 2;
    }

.jwo-login-form .form-control {
    width: 100%;
    height: 50px;
    padding: 0 45px 0 42px;
    background: #fcfaf9;
    border: 1px solid var(--divider-color);
    border-radius: 10px;
    color: var(--primary-color);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    box-shadow: none;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

    .jwo-login-form .form-control:focus {
        background: var(--white-color);
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(255,54,0,.08);
    }


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.jwo-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #8f8986;
    transform: translateY(-50%);
    cursor: pointer;
}

    .jwo-password-toggle:hover {
        color: var(--accent-color);
    }


/* =========================================================
   HELP
   ========================================================= */

.jwo-login-help {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 2px 0 22px;
}

    .jwo-login-help a {
        color: var(--text-color);
        font-family: "DM Sans", sans-serif;
        font-size: 12px;
        font-weight: 500;
        text-decoration: none;
    }

        .jwo-login-help a:hover {
            color: var(--accent-color);
        }


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.jwo-login-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 0 17px;
    background: var(--primary-color);
    color: var(--white-color);
    border: 0;
    border-radius: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 200ms ease, transform 200ms ease;
}

    .jwo-login-button:hover {
        background: var(--accent-color);
        transform: translateY(-1px);
    }

    .jwo-login-button i {
        font-size: 12px;
    }


/* =========================================================
   LOGIN NOTE
   ========================================================= */

.jwo-login-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 17px;
    color: #8e8784;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

    .jwo-login-note i {
        margin-top: 2px;
        color: #198754;
        font-size: 12px;
    }


/* =========================================================
   REGISTER SIDE
   ========================================================= */

.jwo-auth-register {
    display: flex;
    align-items: center;
    padding: 45px;
    background: linear-gradient( 145deg, #fff4ef 0%, #fffaf8 55%, #ffffff 100% );
    border-left: 1px solid var(--divider-color);
}

.jwo-register-inner {
    width: 100%;
    max-width: 390px;
}

.jwo-register-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.jwo-register-inner h2 {
    margin: 0;
    color: var(--primary-color);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 36px;
    line-height: 1.05;
    font-weight: 400;
}

    .jwo-register-inner h2 span {
        color: var(--accent-color);
    }

.jwo-register-inner > p {
    margin: 15px 0 24px;
    color: var(--text-color);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   REGISTER POINTS
   ========================================================= */

.jwo-register-points {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

    .jwo-register-points > div {
        display: flex;
        align-items: center;
        gap: 11px;
    }

    .jwo-register-points i {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 31px;
        width: 31px;
        height: 31px;
        background: var(--white-color);
        border: 1px solid rgba(255,54,0,.12);
        border-radius: 8px;
        color: var(--accent-color);
        font-size: 11px;
    }

    .jwo-register-points span {
        color: var(--primary-color);
        font-family: "DM Sans", sans-serif;
        font-size: 13px;
        font-weight: 600;
    }


/* =========================================================
   REGISTER BUTTON
   ========================================================= */

.jwo-register-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 51px;
    padding: 0 16px;
    background: var(--white-color);
    color: var(--primary-color);
    border: 1px solid rgba(255,54,0,.25);
    border-radius: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

    .jwo-register-button:hover {
        background: var(--accent-color);
        color: var(--white-color);
        border-color: var(--accent-color);
        transform: translateY(-1px);
    }

    .jwo-register-button i {
        font-size: 11px;
    }

.jwo-register-note {
    display: block;
    margin-top: 13px;
    color: #8e8784;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
}

    .jwo-register-note strong {
        color: var(--primary-color);
    }


/* =========================================================
   REGISTRATION MODAL
   ========================================================= */

.jwo-register-modal {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
}

    .jwo-register-modal .modal-header {
        padding: 25px 28px 18px;
        border-bottom: 1px solid var(--divider-color);
    }

.jwo-modal-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-color);
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.jwo-register-modal h2 {
    margin: 0;
    color: var(--primary-color);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 30px;
    font-weight: 400;
}

.jwo-register-modal .modal-body {
    padding: 23px 28px 28px;
}

.jwo-modal-intro {
    margin: 0 0 20px;
    color: var(--text-color);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.jwo-register-form .form-control {
    height: 47px;
    border: 1px solid var(--divider-color);
    border-radius: 9px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
}

    .jwo-register-form .form-control:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(255,54,0,.08);
    }

.jwo-register-submit {
    margin-top: 22px;
}

.jwo-register-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    background: var(--primary-color);
    color: var(--white-color);
    border: 0;
    border-radius: 9px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 200ms ease;
}

    .jwo-register-submit-button:hover {
        background: var(--accent-color);
    }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .jwo-auth-wrap {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .jwo-auth-register {
        border-left: 0;
        border-top: 1px solid var(--divider-color);
    }

    .jwo-register-inner {
        max-width: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .jwo-auth-section {
        padding: 45px 0 55px;
    }

    .jwo-auth-wrap {
        border-radius: 19px;
    }

    .jwo-auth-login {
        padding: 32px 22px 30px;
    }

    .jwo-auth-heading h1 {
        font-size: 36px;
    }

    .jwo-auth-heading p {
        font-size: 13px;
    }

    .jwo-auth-register {
        padding: 32px 22px;
    }

    .jwo-register-inner h2 {
        font-size: 32px;
    }

    .jwo-login-help {
        display: grid;
        gap: 7px;
    }

    .jwo-register-modal .modal-header {
        padding: 21px 19px 16px;
    }

    .jwo-register-modal .modal-body {
        padding: 20px 19px 22px;
    }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 420px) {

    .jwo-auth-heading h1 {
        font-size: 33px;
    }

    .jwo-register-inner h2 {
        font-size: 29px;
    }

    .jwo-login-form .form-control {
        height: 48px;
    }
}


.jwo-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}