/* =========================================================
   CAT GANG SIGNUP
   Kitty × Hacker × Underground Network
========================================================= */

.signup-matrix {
    height: 100vh;
    top: 0;
    opacity: 0.12;
}


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

.signup-page {

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

    width: 100%;

    box-sizing: border-box;

    padding:
        clamp(30px, 6vw, 80px)
        clamp(16px, 4vw, 50px);

    display: flex;

    flex-direction: column;

    align-items: center;

    position: relative;

    z-index: 2;
}


/* =========================================================
   MAIN SHELL
========================================================= */

.signup-shell {

    width: min(1050px, 100%);

    display: grid;

    grid-template-columns:
        minmax(300px, 0.85fr)
        minmax(380px, 1.15fr);

    gap: 0;

    border-radius: 20px;

    overflow: hidden;

    border:
        1px solid rgba(0,255,102,.18);

    background:
        rgba(7,10,16,.88);

    backdrop-filter: blur(18px);

    box-shadow:
        0 30px 80px rgba(0,0,0,.55),
        0 0 40px rgba(0,255,102,.05);

}


/* =========================================================
   INFORMATION PANEL
========================================================= */

.signup-info {

    position: relative;

    padding:
        clamp(30px, 5vw, 55px);

    background:
        linear-gradient(
            145deg,
            rgba(0,255,102,.055),
            rgba(102,204,255,.025),
            rgba(255,46,136,.025)
        );

    border-right:
        1px solid rgba(0,255,102,.12);

    overflow: hidden;
}


/* subtle scanlines */

.signup-info::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255,255,255,.012) 4px
        );

    opacity: .4;
}


/* =========================================================
   TERMINAL LABEL
========================================================= */

.terminal-label {

    display: flex;

    align-items: center;

    gap: 9px;

    color:
        rgba(199,249,204,.7);

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 2px;

    position: relative;

    z-index: 2;
}

.terminal-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background:
        var(--neon);

    box-shadow:
        0 0 10px
        rgba(0,255,102,.8);

    animation:
        signupPulse 1.8s infinite;
}


/* =========================================================
   LOGO
========================================================= */

.cat-identity {

    position: relative;

    width: 130px;

    height: 130px;

    margin:
        45px auto 25px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.signup-logo {

    width: 105px;

    position: relative;

    z-index: 2;

    filter:
        drop-shadow(
            0 0 18px
            rgba(0,255,102,.28)
        );

    transition:
        transform .25s ease;
}

.signup-logo:hover {

    transform:
        scale(1.06)
        rotate(-2deg);
}

.cat-glow {

    position: absolute;

    width: 90px;

    height: 90px;

    border-radius: 50%;

    background:
        rgba(0,255,102,.10);

    filter:
        blur(25px);

    animation:
        logoGlow 3s ease-in-out infinite;
}


/* =========================================================
   INFO HEADING
========================================================= */

.signup-info h1 {

    margin: 0;

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size:
        clamp(34px, 4vw, 52px);

    line-height: .95;

    letter-spacing: 3px;

    color: white;

    position: relative;

    z-index: 2;
}

.signup-info h1 span {

    color:
        var(--neon);

    text-shadow:
        0 0 18px
        rgba(0,255,102,.25);
}


/* =========================================================
   INTRO
========================================================= */

.signup-intro {

    max-width: 390px;

    margin:
        22px 0 30px;

    color:
        rgba(255,255,255,.62);

    line-height: 1.7;

    font-size: 14px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   TERMINAL OUTPUT
========================================================= */

.terminal-output {

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding:
        18px;

    border:
        1px solid rgba(102,204,255,.13);

    border-radius: 10px;

    background:
        rgba(0,0,0,.28);

    color:
        rgba(255,255,255,.52);

    font-size: 11px;

    line-height: 1.6;

    position: relative;

    z-index: 2;
}

.terminal-prefix {

    color:
        var(--neon-blue);

    margin-right: 5px;
}

.terminal-prefix.green {

    color:
        var(--neon);
}

.terminal-cursor {

    color:
        rgba(255,255,255,.72);

    margin-top: 4px;
}

.cursor {

    color:
        var(--neon);

    animation:
        cursorBlink 1s steps(2) infinite;
}


/* =========================================================
   NETWORK STATUS
========================================================= */

.network-mini-status {

    display: flex;

    gap: 25px;

    margin-top: 25px;

    position: relative;

    z-index: 2;
}

.mini-status {

    display: flex;

    align-items: center;

    gap: 7px;

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 9px;

    letter-spacing: 1px;

    color:
        rgba(255,255,255,.45);
}

.mini-status strong {

    color:
        var(--neon);

    font-weight: 600;
}

.mini-dot {

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background:
        var(--neon);

    box-shadow:
        0 0 8px
        rgba(0,255,102,.7);
}

.mini-dot.online {

    animation:
        signupPulse 1.5s infinite;
}


/* =========================================================
   SIGNUP CARD
========================================================= */

.signup-card {

    padding:
        clamp(28px, 5vw, 55px);

    background:
        rgba(12,15,24,.72);

    position: relative;
}


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

.card-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;
}

.card-eyebrow {

    display: block;

    margin-bottom: 7px;

    color:
        var(--neon);

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 1.5px;
}

.card-header h2 {

    margin: 0;

    color:
        white;

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size:
        clamp(25px, 3vw, 32px);

    letter-spacing: 1px;
}

.lock-icon {

    color:
        var(--neon-blue);

    font-size: 24px;

    opacity: .65;

    transform:
        rotate(90deg);
}


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

.card-divider {

    height: 1px;

    margin:
        24px 0 28px;

    background:
        linear-gradient(
            90deg,
            rgba(0,255,102,.25),
            rgba(102,204,255,.12),
            transparent
        );
}


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

.signup-form {

    display: flex;

    flex-direction: column;

    gap: 20px;
}

.form-group {

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-group label {

    color:
        rgba(255,255,255,.78);

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   INPUTS
========================================================= */

.input-shell {

    display: flex;

    align-items: center;

    min-height: 48px;

    box-sizing: border-box;

    border:
        1px solid rgba(0,255,102,.17);

    border-radius: 8px;

    background:
        rgba(0,0,0,.30);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.input-shell:focus-within {

    border-color:
        rgba(0,255,102,.55);

    background:
        rgba(0,255,102,.025);

    box-shadow:
        0 0 18px
        rgba(0,255,102,.08);
}

.input-prefix {

    width: 42px;

    text-align: center;

    flex-shrink: 0;

    color:
        rgba(0,255,102,.65);

    font-family:
        "Chakra Petch",
        sans-serif;

    font-weight: 700;

    font-size: 16px;
}

.input-shell input {

    flex: 1;

    min-width: 0;

    height: 46px;

    border: none;

    outline: none;

    background: transparent;

    color:
        var(--text);

    font-family:
        Consolas,
        monospace;

    font-size: 13px;
}

.input-shell input::placeholder {

    color:
        rgba(199,249,204,.25);
}

.input-status {

    width: 36px;

    text-align: center;

    font-size: 14px;
}


/* =========================================================
   PASSWORD BUTTON
========================================================= */

.password-toggle {

    margin-right: 8px;

    padding: 5px 8px;

    border:
        1px solid rgba(102,204,255,.15);

    border-radius: 5px;

    background:
        transparent;

    color:
        rgba(102,204,255,.7);

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 8px;

    letter-spacing: 1px;

    cursor: pointer;

    transition:
        .2s ease;
}

.password-toggle:hover {

    border-color:
        rgba(102,204,255,.4);

    color:
        var(--neon-blue);

    background:
        rgba(102,204,255,.05);
}


/* =========================================================
   FIELD HINT
========================================================= */

.field-hint {

    color:
        rgba(255,255,255,.32);

    font-size: 10px;

    line-height: 1.4;
}


/* =========================================================
   FIELD ERRORS
========================================================= */

.field-error {

    min-height: 0;

    color:
        #ff6b8a;

    font-size: 10px;

    line-height: 1.4;
}

.field-error:empty {

    display: none;
}


/* =========================================================
   PASSWORD STRENGTH
========================================================= */

.password-strength {

    margin-top: 4px;
}

.strength-header {

    display: flex;

    justify-content: space-between;

    margin-bottom: 6px;

    color:
        rgba(255,255,255,.35);

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 8px;

    letter-spacing: 1px;
}

#strength-label {

    color:
        rgba(255,255,255,.35);
}

.strength-bar {

    height: 4px;

    overflow: hidden;

    border-radius: 99px;

    background:
        rgba(255,255,255,.06);
}

#strength-fill {

    display: block;

    height: 100%;

    width: 0%;

    border-radius: inherit;

    background:
        var(--neon);

    box-shadow:
        0 0 8px
        rgba(0,255,102,.4);

    transition:
        width .25s ease,
        background .25s ease;
}


/* =========================================================
   PASSWORD RULES
========================================================= */

.password-rules {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 5px;

    margin-top: 2px;
}

.password-rule {

    color:
        rgba(255,255,255,.32);

    font-size: 9px;

    transition:
        color .2s ease;
}

.password-rule span {

    margin-right: 4px;
}

.password-rule.valid {

    color:
        var(--neon);
}

.password-rule.valid span {

    color:
        var(--neon);
}


/* =========================================================
   TERMS
========================================================= */

.terms {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    color:
        rgba(255,255,255,.48);

    font-size: 10px;

    line-height: 1.5;

    cursor: pointer;
}

.terms input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {

    width: 15px;

    height: 15px;

    flex-shrink: 0;

    margin-top: 1px;

    border:
        1px solid rgba(0,255,102,.25);

    border-radius: 4px;

    background:
        rgba(0,0,0,.25);

    transition:
        .2s ease;
}

.terms input:checked + .custom-checkbox {

    background:
        rgba(0,255,102,.18);

    border-color:
        var(--neon);

    box-shadow:
        0 0 10px
        rgba(0,255,102,.15);

    position: relative;
}

.terms input:checked + .custom-checkbox::after {

    content: "✓";

    position: absolute;

    left: 2px;

    top: -1px;

    color:
        var(--neon);

    font-size: 11px;

    font-weight: bold;
}

.terms a {

    color:
        var(--neon-blue);

    text-decoration: none;
}

.terms a:hover {

    text-decoration: underline;
}


/* =========================================================
   GLOBAL MESSAGE
========================================================= */

.signup-message {

    display: none;

    padding: 11px 13px;

    border-radius: 7px;

    font-size: 11px;

    line-height: 1.5;
}

.signup-message.error {

    color:
        #ff8da5;

    background:
        rgba(255,46,136,.07);

    border:
        1px solid rgba(255,46,136,.22);
}

.signup-message.show {

    display: block;
}


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

.signup-submit {

    position: relative;

    width: 100%;

    min-height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    border:
        1px solid rgba(0,255,102,.5);

    border-radius: 8px;

    background:
        linear-gradient(
            90deg,
            rgba(0,255,102,.14),
            rgba(0,255,102,.07)
        );

    color:
        var(--neon);

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    cursor: pointer;

    overflow: hidden;

    transition:
        .2s ease;
}

.signup-submit::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.08),
            transparent
        );

    transform:
        translateX(-100%);

    transition:
        transform .5s ease;
}

.signup-submit:hover {

    transform:
        translateY(-2px);

    border-color:
        var(--neon);

    background:
        rgba(0,255,102,.15);

    box-shadow:
        0 0 25px
        rgba(0,255,102,.13);
}

.signup-submit:hover::before {

    transform:
        translateX(100%);
}

.signup-submit:disabled {

    cursor:
        wait;

    opacity:
        .55;

    transform:
        none;
}

.submit-arrow {

    font-size: 18px;

    transition:
        transform .2s ease;
}

.signup-submit:hover .submit-arrow {

    transform:
        translateX(4px);
}

.submit-loading {

    display: none;
}

.signup-submit.loading .submit-text,
.signup-submit.loading .submit-arrow {

    display: none;
}

.signup-submit.loading .submit-loading {

    display: inline;
}


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

.login-prompt {

    text-align: center;

    color:
        rgba(255,255,255,.35);

    font-size: 10px;

    margin-top: -2px;
}

.login-prompt a {

    color:
        var(--neon);

    text-decoration: none;

    margin-left: 4px;
}

.login-prompt a:hover {

    text-decoration: underline;
}


/* =========================================================
   FOOTER STATUS
========================================================= */

.signup-footer-status {

    width: min(1050px, 100%);

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 20px;

    color:
        rgba(255,255,255,.25);

    font-family:
        "Chakra Petch",
        sans-serif;

    font-size: 8px;

    letter-spacing: 1px;

    text-align: center;
}

.footer-green {

    color:
        rgba(0,255,102,.65);
}

.footer-separator {

    color:
        rgba(255,255,255,.12);
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes signupPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(.75);
    }
}

@keyframes logoGlow {

    0%,
    100% {
        opacity: .5;
        transform: scale(.9);
    }

    50% {
        opacity: .9;
        transform: scale(1.1);
    }
}

@keyframes cursorBlink {

    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}


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

@media (max-width: 800px) {

    .signup-shell {

        grid-template-columns: 1fr;

        max-width: 600px;
    }

    .signup-info {

        padding:
            30px;

        border-right: none;

        border-bottom:
            1px solid rgba(0,255,102,.12);

        text-align: center;
    }

    .signup-info h1 {

        font-size: 38px;
    }

    .signup-intro {

        margin-left: auto;

        margin-right: auto;
    }

    .network-mini-status {

        justify-content: center;
    }

    .terminal-output {

        text-align: left;
    }

    .cat-identity {

        margin-top: 30px;
    }
}


@media (max-width: 600px) {

    .signup-page {

        padding:
            20px 12px 35px;
    }

    .signup-shell {

        border-radius: 14px;
    }

    .signup-info {

        padding:
            28px 20px;
    }

    .signup-card {

        padding:
            25px 18px;
    }

    .signup-info h1 {

        font-size: 32px;

        letter-spacing: 2px;
    }

    .signup-intro {

        font-size: 13px;
    }

    .password-rules {

        grid-template-columns: 1fr;
    }

    .network-mini-status {

        flex-direction: column;

        gap: 10px;
    }

    .mini-status {

        justify-content: center;
    }

    .signup-footer-status {

        line-height: 1.7;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .terminal-dot,
    .mini-dot,
    .cat-glow,
    .cursor {

        animation: none;
    }

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        transition-duration: .01ms !important;
    }
}
