/* =========================================================
   JOHAR HUB — AUTH PAGE
   css/auth.css
========================================================= */

:root {
    --auth-green: #08fb8f;
    --auth-green-soft: rgba(8, 251, 143, 0.12);
    --auth-green-glow: rgba(8, 251, 143, 0.25);

    --auth-black: #030706;
    --auth-dark: #070c0a;
    --auth-card: rgba(10, 18, 15, 0.72);

    --auth-text: #f1f5f3;
    --auth-muted: #8d9893;

    --auth-border: rgba(255, 255, 255, 0.09);
    --auth-green-border: rgba(8, 251, 143, 0.25);
}


/* =========================================================
   RESET / PAGE
========================================================= */

body {
    min-height: 100vh;
    background: var(--auth-black);
    color: var(--auth-text);
    overflow-x: hidden;
}


/* =========================================================
   BACKGROUND
========================================================= */

.auth-page {
    position: relative;
    min-height: 100vh;
    padding: 140px 7vw 70px;
    overflow: hidden;
}

.auth-glow {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
}

.glow-one {
    width: 500px;
    height: 500px;
    background: rgba(8, 251, 143, 0.11);
    top: -250px;
    left: -200px;
}

.glow-two {
    width: 450px;
    height: 450px;
    background: rgba(8, 251, 143, 0.08);
    bottom: -200px;
    right: -150px;
}

.auth-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: 0.28;

    background-image:
        linear-gradient(
            rgba(8, 251, 143, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(8, 251, 143, 0.035) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image: linear-gradient(
        to bottom,
        transparent,
        black 20%,
        black 80%,
        transparent
    );
}


/* =========================================================
   HEADER
========================================================= */

.auth-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    min-height: 82px;
    padding: 0 4vw;

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

    background: rgba(3, 7, 6, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--auth-border);

    z-index: 1000;
}

.auth-brand {
    text-decoration: none;
    color: var(--auth-text);

    display: flex;
    align-items: center;
    gap: 13px;

    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.auth-brand .mini-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.auth-brand b {
    color: var(--auth-green);
}

.auth-header-right {
    display: flex;
    align-items: center;
    gap: 18px;

    color: var(--auth-muted);
    font-size: 0.9rem;
}

.header-signup {
    border: none;
    background: transparent;
    color: var(--auth-green);

    font-family: inherit;
    font-weight: 600;

    cursor: pointer;
    transition: 0.25s ease;
}

.header-signup:hover {
    color: white;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 11px 17px;

    border: 1px solid var(--auth-border);
    border-radius: 999px;

    color: var(--auth-text);
    text-decoration: none;

    transition: 0.25s ease;
}

.back-home:hover {
    border-color: var(--auth-green);
    color: var(--auth-green);
    transform: translateX(-3px);
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.auth-layout {
    width: min(1180px, 100%);
    margin: 0 auto;

    min-height: calc(100vh - 210px);

    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: clamp(50px, 8vw, 120px);
}


/* =========================================================
   LEFT — BRAND INTRO
========================================================= */

.auth-intro {
    position: relative;
    padding: 35px 0;
}

.auth-kicker {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 25px;
}

.auth-kicker span {
    width: 32px;
    height: 2px;
    background: var(--auth-green);

    box-shadow: 0 0 15px var(--auth-green);
}

.auth-kicker p {
    margin: 0;

    color: var(--auth-green);

    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 4px;
}

.auth-intro h1 {
    margin: 0;

    font-size: clamp(3.5rem, 6vw, 6.5rem);
    line-height: 0.95;

    letter-spacing: -4px;
    font-weight: 800;
}

.auth-intro h1 b {
    color: var(--auth-green);
}

.auth-intro-text {
    max-width: 570px;

    margin-top: 30px;

    color: var(--auth-muted);

    font-size: 1.05rem;
    line-height: 1.8;
}


/* =========================================================
   FEATURES
========================================================= */

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 18px;

    margin-top: 45px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 17px 20px;

    max-width: 500px;

    background: rgba(255, 255, 255, 0.018);

    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;

    transition: 0.3s ease;
}

.auth-feature:hover {
    border-color: var(--auth-green-border);
    background: rgba(8, 251, 143, 0.035);

    transform: translateX(6px);
}

.feature-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: rgba(8, 251, 143, 0.09);
    border: 1px solid rgba(8, 251, 143, 0.15);

    color: var(--auth-green);
    font-size: 1.3rem;
}

.auth-feature h4 {
    margin: 0 0 5px;

    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.auth-feature p {
    margin: 0;

    color: var(--auth-muted);
    font-size: 0.84rem;
}

.auth-rooted {
    margin-top: 45px;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-rooted span {
    color: var(--auth-muted);

    font-family: "Space Mono", monospace;
    font-size: 0.65rem;

    letter-spacing: 4px;
}

.auth-rooted b {
    color: var(--auth-green);

    font-family: "Space Mono", monospace;
    font-size: 0.78rem;

    letter-spacing: 3px;
}

.auth-rooted i {
    font-size: 1rem;
}


/* =========================================================
   AUTH CARD
========================================================= */

.auth-card-wrap {
    position: relative;
}

.auth-card-wrap::before {
    content: "";

    position: absolute;
    inset: 30px -25px -30px 25px;

    background: rgba(8, 251, 143, 0.08);
    filter: blur(70px);

    z-index: -1;
}

.auth-card {
    position: relative;

    width: 100%;
    max-width: 500px;
    margin-left: auto;

    padding: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.015)
        );

    border: 1px solid var(--auth-green-border);

    border-radius: 24px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}


/* =========================================================
   TABS
========================================================= */

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 6px;

    padding: 5px;

    background: rgba(0, 0, 0, 0.28);

    border-radius: 14px;
}

.auth-tab {
    padding: 13px 15px;

    border: none;
    border-radius: 10px;

    background: transparent;

    color: var(--auth-muted);

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}

.auth-tab.active {
    color: #03110a;

    background: var(--auth-green);

    box-shadow:
        0 5px 25px rgba(8, 251, 143, 0.2);
}

.auth-tab:not(.active):hover {
    color: white;
}


/* =========================================================
   PANELS
========================================================= */

.auth-panel {
    display: none;

    padding: 35px 28px 28px;

    animation: authFade 0.35s ease;
}

.auth-panel.active {
    display: block;
}

@keyframes authFade {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.auth-panel-head {
    margin-bottom: 28px;
}

.panel-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 14px;

    color: var(--auth-green);
    font-size: 1.5rem;

    background: rgba(8, 251, 143, 0.09);

    border: 1px solid rgba(8, 251, 143, 0.18);
}

.panel-eyebrow {
    margin: 0 0 9px;

    color: var(--auth-green);

    font-family: "Space Mono", monospace;
    font-size: 0.68rem;

    letter-spacing: 3px;
}

.auth-panel-head h2 {
    margin: 0 0 9px;

    font-size: 1.8rem;
    letter-spacing: -0.7px;
}

.auth-panel-head > p:last-child {
    margin: 0;

    color: var(--auth-muted);

    font-size: 0.9rem;
    line-height: 1.6;
}


/* =========================================================
   FORM
========================================================= */

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 19px;
}

.input-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.input-group label {
    color: #c4ccc8;

    font-size: 0.82rem;
    font-weight: 500;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    color: var(--auth-green);

    font-size: 0.75rem;
    text-decoration: none;

    transition: 0.2s ease;
}

.forgot-link:hover {
    color: white;
}

.input-box {
    position: relative;

    display: flex;
    align-items: center;

    height: 54px;

    background: rgba(0, 0, 0, 0.22);

    border: 1px solid var(--auth-border);
    border-radius: 12px;

    transition: 0.25s ease;
}

.input-box:focus-within {
    border-color: var(--auth-green);

    box-shadow:
        0 0 0 4px rgba(8, 251, 143, 0.06);
}

.input-box > i {
    width: 48px;

    text-align: center;

    color: #77817c;
    font-size: 1.15rem;
}

.input-box input {
    width: 100%;
    height: 100%;

    padding: 0 14px 0 0;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    font-family: inherit;
    font-size: 0.9rem;
}

.input-box input::placeholder {
    color: #59635e;
}

.password-box input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;

    right: 5px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: none;

    background: transparent;

    color: #77817c;

    cursor: pointer;

    transition: 0.2s ease;
}

.password-toggle:hover {
    color: var(--auth-green);
}


/* =========================================================
   CHECKBOX
========================================================= */

.remember-row,
.terms-row {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    color: var(--auth-muted);

    font-size: 0.8rem;

    cursor: pointer;
}

.remember-row input,
.terms-row input {
    display: none;
}

.checkmark {
    width: 17px;
    height: 17px;

    flex-shrink: 0;

    margin-top: 1px;

    border: 1px solid #4b5751;
    border-radius: 5px;

    background: rgba(255, 255, 255, 0.02);

    transition: 0.2s ease;
}

.remember-row input:checked + .checkmark,
.terms-row input:checked + .checkmark {
    background: var(--auth-green);
    border-color: var(--auth-green);
}

.remember-row input:checked + .checkmark::after,
.terms-row input:checked + .checkmark::after {
    content: "✓";

    display: block;

    text-align: center;

    color: #021009;

    font-size: 12px;
    font-weight: 800;
    line-height: 15px;
}

.terms-row a {
    color: var(--auth-green);
    text-decoration: none;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.auth-submit {
    width: 100%;
    height: 55px;

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

    margin-top: 4px;

    border: none;
    border-radius: 13px;

    background: var(--auth-green);

    color: #031009;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 12px 35px rgba(8, 251, 143, 0.18);

    transition: 0.25s ease;
}

.auth-submit:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 45px rgba(8, 251, 143, 0.28);
}

.auth-submit i {
    font-size: 1.15rem;

    transition: 0.25s ease;
}

.auth-submit:hover i {
    transform: translateX(4px);
}


/* =========================================================
   DIVIDER
========================================================= */

.auth-divider {
    position: relative;

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

    margin: 28px 0 20px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    position: absolute;

    width: 32%;
    height: 1px;

    background: var(--auth-border);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    padding: 0 10px;

    background: #09100d;

    color: #65716b;

    font-family: "Space Mono", monospace;
    font-size: 0.6rem;

    letter-spacing: 1.5px;

    z-index: 1;
}


/* =========================================================
   SOCIAL LOGIN
========================================================= */

.social-auth {
    display: flex;
}

.social-btn {
    width: 100%;
    height: 52px;

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

    border: 1px solid var(--auth-border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.025);

    color: var(--auth-text);

    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}

.social-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);

    background: rgba(255, 255, 255, 0.06);

    transform: translateY(-2px);
}

.social-btn i {
    color: var(--auth-green);
    font-size: 1.1rem;
}


/* =========================================================
   SWITCH TEXT
========================================================= */

.switch-auth-text {
    margin: 25px 0 0;

    text-align: center;

    color: var(--auth-muted);

    font-size: 0.82rem;
}

.switch-auth-text button {
    padding: 0;

    border: none;

    background: transparent;

    color: var(--auth-green);

    font-family: inherit;
    font-weight: 600;

    cursor: pointer;
}

.switch-auth-text button:hover {
    color: white;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .auth-page {
        padding: 125px 6vw 60px;
    }

    .auth-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .auth-intro {
        text-align: center;
    }

    .auth-kicker {
        justify-content: center;
    }

    .auth-intro-text {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-features {
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;

        text-align: left;
    }

    .auth-rooted {
        align-items: center;
    }

    .auth-card {
        margin: 0 auto;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .auth-header {
        min-height: 72px;

        padding: 0 20px;
    }

    .auth-brand {
        gap: 9px;

        font-size: 1.05rem;
        letter-spacing: 1.5px;
    }

    .auth-brand .mini-logo {
        width: 36px;
        height: 36px;
    }

    .desktop-only,
    .header-signup {
        display: none;
    }

    .auth-header-right {
        gap: 0;
    }

    .back-home {
        width: 42px;
        height: 42px;

        padding: 0;

        display: grid;
        place-items: center;

        border-radius: 50%;
    }

    .back-home span {
        display: none;
    }

    .back-home i {
        font-size: 1.2rem;
    }


    /* PAGE */

    .auth-page {
        padding: 105px 18px 45px;
    }

    .auth-layout {
        gap: 35px;
    }


    /* INTRO */

    .auth-intro {
        padding: 15px 0 0;
    }

    .auth-kicker {
        margin-bottom: 18px;
    }

    .auth-kicker p {
        font-size: 0.58rem;
        letter-spacing: 2.8px;
    }

    .auth-kicker span {
        width: 24px;
    }

    .auth-intro h1 {
        font-size: clamp(3rem, 15vw, 4.5rem);
        letter-spacing: -2.5px;
    }

    .auth-intro-text {
        margin-top: 20px;

        font-size: 0.9rem;
        line-height: 1.7;
    }

    .auth-features {
        display: none;
    }

    .auth-rooted {
        margin-top: 28px;
    }

    .auth-rooted span {
        font-size: 0.55rem;
    }

    .auth-rooted b {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }


    /* CARD */

    .auth-card {
        padding: 9px;

        border-radius: 20px;
    }

    .auth-panel {
        padding: 28px 17px 22px;
    }

    .auth-panel-head {
        margin-bottom: 24px;
    }

    .panel-icon {
        width: 45px;
        height: 45px;

        font-size: 1.3rem;

        margin-bottom: 14px;
    }

    .panel-eyebrow {
        font-size: 0.6rem;
        letter-spacing: 2.5px;
    }

    .auth-panel-head h2 {
        font-size: 1.5rem;
    }

    .auth-panel-head > p:last-child {
        font-size: 0.82rem;
    }


    /* FORM */

    .auth-form {
        gap: 16px;
    }

    .input-box {
        height: 52px;
    }

    .input-group label {
        font-size: 0.78rem;
    }

    .input-box input {
        font-size: 0.85rem;
    }

    .forgot-link {
        font-size: 0.68rem;
    }

    .remember-row,
    .terms-row {
        font-size: 0.72rem;
    }

    .auth-submit {
        height: 52px;

        font-size: 0.85rem;
    }

    .auth-divider {
        margin: 24px 0 18px;
    }

    .social-btn {
        height: 50px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 370px) {

    .auth-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .auth-brand span {
        font-size: 0.92rem;
    }

    .auth-intro h1 {
        font-size: 2.8rem;
    }

    .auth-panel {
        padding-left: 14px;
        padding-right: 14px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.auth-tab:focus-visible,
.header-signup:focus-visible,
.back-home:focus-visible,
.input-box input:focus-visible,
.password-toggle:focus-visible,
.auth-submit:focus-visible,
.social-btn:focus-visible {
    outline: 2px solid var(--auth-green);
    outline-offset: 3px;
}