/* ===================================================================
   NX Seeds Dealer Portal Login v100
   Scoped to .nx-seeds-login-v100.
   No CSS minimum-function usage - compatible with this project's asset pipeline.
   =================================================================== */

body.nx-seeds-login-v100 {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f7f5ee;
    color: #12271b;
}

body.nx-seeds-login-v100 #wrapwrap,
body.nx-seeds-login-v100 #wrapwrap > main {
    min-height: 100vh;
    background: transparent;
}

.nx100-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 52% 48%;
}

/* ---------------- LEFT / LIGHT BRAND PANEL ---------------- */

.nx100-brand {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 54px 68px 48px;
    background:
        radial-gradient(circle at 82% 10%, rgba(211, 168, 50, 0.10), transparent 24%),
        linear-gradient(145deg, #fbfaf6 0%, #f2f5ed 100%);
}

.nx100-brand-grid {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(20, 89, 50, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 89, 50, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom right, #000 0%, transparent 78%);
    pointer-events: none;
}

.nx100-brand-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.nx100-glow-one {
    width: 340px;
    height: 340px;
    right: -170px;
    bottom: -110px;
    border: 1px solid rgba(13, 104, 56, 0.12);
    box-shadow:
        0 0 0 42px rgba(13, 104, 56, 0.025),
        0 0 0 84px rgba(13, 104, 56, 0.018);
}

.nx100-glow-two {
    width: 180px;
    height: 180px;
    top: -76px;
    right: 10%;
    background: rgba(210, 167, 45, 0.08);
}

.nx100-brand-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(100vh - 102px);
    min-height: 640px;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.nx100-logo-link {
    display: inline-flex;
    width: fit-content;
    text-decoration: none;
}

.nx100-logo {
    display: block;
    width: auto;
    max-width: 250px;
    max-height: 92px;
    object-fit: contain;
}

.nx100-copy {
    margin-top: auto;
    margin-bottom: auto;
    padding: 52px 0 36px;
}

.nx100-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 21px;
    color: #0d703c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.nx100-kicker-line {
    width: 34px;
    height: 2px;
    border-radius: 99px;
    background: #d4a833;
}

.nx100-copy h1 {
    max-width: 640px;
    margin: 0;
    color: #123c27;
    font-size: clamp(46px, 4.4vw, 72px);
    line-height: 1.01;
    letter-spacing: -0.052em;
    font-weight: 850;
}

.nx100-copy h1 span {
    display: block;
    color: #0b6d3a;
}

.nx100-copy > p {
    max-width: 590px;
    margin: 26px 0 0;
    color: #66746b;
    font-size: 16px;
    line-height: 1.75;
}

.nx100-benefits {
    max-width: 650px;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.nx100-benefit {
    min-height: 150px;
    padding: 19px;
    border: 1px solid #dce6d9;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.70);
    box-shadow: 0 12px 34px rgba(24, 69, 42, 0.05);
    backdrop-filter: blur(7px);
}

.nx100-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #e8f2e7;
    color: #137344;
    font-size: 15px;
}

.nx100-benefit strong,
.nx100-benefit small {
    display: block;
}

.nx100-benefit strong {
    margin-bottom: 5px;
    color: #183e2a;
    font-size: 13px;
}

.nx100-benefit small {
    color: #758078;
    font-size: 11px;
    line-height: 1.55;
}

.nx100-brand-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #7f8a82;
    font-size: 11px;
    font-weight: 650;
}

.nx100-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d5a72f;
    box-shadow: 0 0 0 5px rgba(213, 167, 47, 0.12);
}

/* ---------------- RIGHT / GREEN ACCESS PANEL ---------------- */

.nx100-access {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 46px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 13% 13%, rgba(221, 181, 62, 0.14), transparent 24%),
        radial-gradient(circle at 88% 86%, rgba(116, 176, 90, 0.18), transparent 29%),
        linear-gradient(145deg, #0b6b3d 0%, #07542f 52%, #063e27 100%);
}

.nx100-access-grid {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        linear-gradient(rgba(255,255,255,0.75) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.75) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.nx100-access-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.nx100-access-orb-one {
    width: 260px;
    height: 260px;
    top: -115px;
    right: -80px;
    background: rgba(221, 181, 62, 0.10);
}

.nx100-access-orb-two {
    width: 330px;
    height: 330px;
    left: -175px;
    bottom: -155px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 0 0 42px rgba(255,255,255,0.022),
        0 0 0 84px rgba(255,255,255,0.015);
}

.nx100-access-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
}

.nx100-top {
    margin-bottom: 20px;
}

.nx100-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.83);
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
    transition: color 0.18s ease, transform 0.18s ease;
}

.nx100-back:hover {
    color: #ffffff;
    transform: translateX(-2px);
}

.nx100-card {
    width: 100%;
    padding: 43px 42px 36px;
    border: 1px solid rgba(255,255,255,0.60);
    border-radius: 30px;
    background: rgba(255,255,255,0.97);
    box-shadow:
        0 32px 80px rgba(0, 36, 20, 0.25),
        0 3px 12px rgba(0, 36, 20, 0.10);
}

.nx100-card-head {
    margin-bottom: 30px;
}

.nx100-card-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #148047;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.nx100-card-head h2 {
    margin: 0;
    color: #143c27;
    font-size: 35px;
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 850;
}

.nx100-card-head p {
    margin: 11px 0 0;
    color: #7b857e;
    font-size: 13px;
    line-height: 1.6;
}

.nx100-login-form {
    margin: 0;
}

.nx100-field {
    margin-bottom: 20px;
}

.nx100-field label {
    display: block;
    margin: 0 0 8px;
    color: #31473a;
    font-size: 12px;
    font-weight: 800;
}

.nx100-password-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nx100-reset {
    color: #147a45;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.nx100-reset:hover {
    color: #07582f;
}

.nx100-input-wrap {
    position: relative;
}

.nx100-input-wrap > .fa {
    position: absolute;
    z-index: 4;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #819188;
    font-size: 14px;
    pointer-events: none;
}

.nx100-input-wrap .form-control {
    width: 100%;
    min-height: 54px;
    padding: 12px 15px 12px 43px;
    border: 1px solid #d6e1d6;
    border-radius: 14px;
    background: #fbfdf9;
    color: #18281e;
    font-size: 13px;
    box-shadow: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.nx100-input-wrap .form-control:focus {
    border-color: #48a46d;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(23, 126, 70, 0.10);
}

.nx100-password-wrap .form-control {
    border-radius: 14px !important;
    padding-right: 48px;
}

.nx100-eye {
    position: absolute;
    z-index: 5;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #627268 !important;
}

.nx100-eye:hover {
    color: #0b6b3d !important;
    background: #edf5ec !important;
}

.nx100-alert {
    margin: 0 0 17px;
    border: 0;
    border-radius: 12px;
    font-size: 12px;
}

.nx100-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid #0b6338;
    border-radius: 14px;
    background: linear-gradient(135deg, #118048 0%, #075b32 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 14px 30px rgba(9, 96, 52, 0.22);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.nx100-submit:hover,
.nx100-submit:focus {
    border-color: #064a29;
    background: linear-gradient(135deg, #0e7442 0%, #064a29 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(9, 96, 52, 0.28);
}

.nx100-help {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e9efea;
    color: #8a958d;
    font-size: 11px;
    text-align: center;
}

.nx100-help a {
    color: #0e7140;
    font-weight: 850;
    text-decoration: none;
}

.nx100-access-footer {
    margin-top: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: rgba(255,255,255,0.62);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.nx100-footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.50);
}

/* Odoo-native reset-password content rendered inside our card */
.nx100-form-wrap .oe_reset_password_form,
.nx100-form-wrap .oe_login_form {
    width: 100%;
    max-width: none;
    margin: 0;
}

.nx100-form-wrap .oe_reset_password_form label {
    color: #31473a;
    font-size: 12px;
    font-weight: 800;
}

.nx100-form-wrap .oe_reset_password_form .form-control {
    min-height: 52px;
    border: 1px solid #d6e1d6;
    border-radius: 14px;
    box-shadow: none;
}

.nx100-form-wrap .oe_reset_password_form .btn-primary {
    min-height: 52px;
    border-radius: 14px;
    background: #0c6b3b;
    border-color: #0c6b3b;
}

/* Defensive: even on non-login routes using this layout, do not display
   alternative passkey/auth blocks inside the NX branded surface. */
body.nx-seeds-login-v100 .o_login_auth,
body.nx-seeds-login-v100 [class*="passkey"],
body.nx-seeds-login-v100 [id*="passkey"] {
    display: none !important;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 1080px) {
    .nx100-shell {
        grid-template-columns: 47% 53%;
    }

    .nx100-brand {
        padding: 45px 38px;
    }

    .nx100-access {
        padding: 42px 34px;
    }

    .nx100-copy h1 {
        font-size: 48px;
    }

    .nx100-benefits {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .nx100-benefit {
        min-height: 0;
        padding: 13px 15px;
        display: grid;
        grid-template-columns: 38px 1fr;
        column-gap: 12px;
        align-items: center;
    }

    .nx100-benefit-icon {
        margin: 0;
        grid-row: 1 / 3;
    }
}

@media (max-width: 820px) {
    .nx100-shell {
        display: block;
    }

    .nx100-brand {
        min-height: auto;
        padding: 28px 24px 34px;
    }

    .nx100-brand-inner {
        min-height: 0;
        height: auto;
    }

    .nx100-logo {
        max-width: 205px;
        max-height: 72px;
    }

    .nx100-copy {
        margin: 42px 0 0;
        padding: 0;
    }

    .nx100-copy h1 {
        font-size: 42px;
        max-width: 580px;
    }

    .nx100-copy > p {
        margin-top: 18px;
    }

    .nx100-benefits {
        display: none;
    }

    .nx100-brand-footer {
        margin-top: 28px;
    }

    .nx100-access {
        min-height: auto;
        padding: 40px 20px 52px;
    }

    .nx100-access-inner {
        max-width: 560px;
    }

    .nx100-card {
        padding: 33px 27px 29px;
        border-radius: 24px;
    }
}

@media (max-width: 460px) {
    .nx100-brand {
        padding: 23px 18px 28px;
    }

    .nx100-logo {
        max-width: 180px;
        max-height: 64px;
    }

    .nx100-copy {
        margin-top: 32px;
    }

    .nx100-copy h1 {
        font-size: 35px;
    }

    .nx100-copy > p {
        font-size: 14px;
    }

    .nx100-access {
        padding: 32px 14px 42px;
    }

    .nx100-card {
        padding: 29px 20px 26px;
    }

    .nx100-card-head h2 {
        font-size: 31px;
    }
}

/* NX100_REFERENCE_GREEN_LEFT */
.nx100-shell {
    grid-template-columns: 58% 42%;
}

.nx100-brand {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 4%, rgba(139, 206, 69, 0.28), transparent 30%),
        radial-gradient(circle at 92% 82%, rgba(104, 181, 65, 0.16), transparent 24%),
        linear-gradient(145deg, #0e7442 0%, #08633a 47%, #04522f 100%);
}

.nx100-brand::before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 560px;
    height: 230px;
    right: -115px;
    top: 108px;
    border-radius: 100% 0 100% 0;
    transform: rotate(-27deg);
    background: linear-gradient(
        135deg,
        rgba(20, 123, 59, 0.26),
        rgba(150, 219, 47, 0.56)
    );
    box-shadow:
        -62px 90px 0 -10px rgba(32, 133, 62, 0.34),
        -108px 188px 0 -20px rgba(129, 206, 62, 0.30);
    pointer-events: none;
}

.nx100-brand::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 440px;
    height: 125px;
    right: -82px;
    bottom: 82px;
    border-radius: 100% 0 100% 0;
    transform: rotate(-31deg);
    background: linear-gradient(
        135deg,
        rgba(170, 224, 48, 0.18),
        rgba(195, 233, 57, 0.58)
    );
    pointer-events: none;
}

.nx100-brand-grid {
    z-index: 0;
    opacity: 0.075;
    background-image:
        linear-gradient(rgba(255,255,255,0.85) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.85) 1px, transparent 1px);
}

.nx100-brand-inner {
    position: relative;
    z-index: 4;
}

.nx100-logo-link {
    padding: 12px 17px;
    border-radius: 17px;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 14px 34px rgba(0, 37, 20, 0.15);
}

.nx100-logo {
    max-width: 250px;
    max-height: 86px;
}

.nx100-kicker {
    color: #f2ca50;
}

.nx100-kicker-line {
    background: #f2ca50;
}

.nx100-copy h1 {
    position: relative;
    z-index: 5;
    color: #ffffff;
}

.nx100-copy h1 span {
    display: block;
    color: #98d82f;
}

.nx100-copy > p {
    position: relative;
    z-index: 5;
    color: rgba(255,255,255,0.82);
}

.nx100-benefits {
    position: relative;
    z-index: 5;
}

.nx100-benefit {
    border-color: rgba(255,255,255,0.17);
    background: rgba(255,255,255,0.075);
    box-shadow: 0 13px 34px rgba(0, 41, 22, 0.08);
}

.nx100-benefit-icon {
    background: rgba(242, 202, 80, 0.14);
    color: #f2ca50;
}

.nx100-benefit strong {
    color: #ffffff;
}

.nx100-benefit small {
    color: rgba(255,255,255,0.68);
}

.nx100-brand-footer {
    position: relative;
    z-index: 5;
    color: rgba(255,255,255,0.65);
}

.nx100-status-dot {
    background: #f0c847;
    box-shadow: 0 0 0 5px rgba(240, 200, 71, 0.10);
}

.nx100-access {
    background:
        radial-gradient(circle at 82% 10%, rgba(131, 181, 95, 0.09), transparent 27%),
        linear-gradient(145deg, #fbfaf7 0%, #f3f6ef 100%);
}

.nx100-access-grid {
    display: none;
}

.nx100-back {
    color: #354b3e;
}

.nx100-back:hover {
    color: #0b6b3d;
}

.nx100-card {
    border-color: #dde7dc;
    background: rgba(255,255,255,0.98);
    box-shadow:
        0 29px 72px rgba(38, 67, 47, 0.12),
        0 3px 11px rgba(38, 67, 47, 0.05);
}

.nx100-access-footer {
    color: #89958d;
}

.nx100-footer-dot {
    background: #a8b3ab;
}

body.nx-seeds-login-v100 .o_login_auth,
body.nx-seeds-login-v100 [class*="passkey"],
body.nx-seeds-login-v100 [id*="passkey"] {
    display: none !important;
}

@media (max-width: 1100px) {
    .nx100-shell {
        grid-template-columns: 54% 46%;
    }
}

@media (max-width: 820px) {
    .nx100-shell {
        display: block;
    }

    .nx100-logo {
        max-width: 205px;
        max-height: 70px;
    }
}
