:root {
    --bg: #0f1724;
    --card: #0b1220;
    --accent: #3b82f6;
    --accent-2: #7c3aed;
    --muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: radial-gradient(1200px 600px at 10% 20%, rgba(60, 100, 200, 0.09), transparent),
        radial-gradient(900px 400px at 90% 80%, rgba(124, 58, 237, 0.06), transparent),
        var(--bg);
    color: #e6eef8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 60px);
}

.container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 40%);
    gap: 2vw;
    align-items: center;
}

/* Left info panel */
.hero {
    position: relative;
    /* so line can sit inside */
    padding: clamp(30px, 4vw, 60px);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
    min-height: auto;
    max-width: 100%;
    overflow: hidden;
    /* keep line inside */
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
}

.wave1 {
    fill: rgba(7, 111, 7, 0.6);
    /* dark green */
}

.wave2 {
    fill: rgba(63, 169, 106, 0.5);
    /* light green */
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: white;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.16);
}

h1 {
    font-size: clamp(22px, 3vw, 32px);
}

p.lead {
    font-size: clamp(14px, 1.2vw, 16px);
}

/* Right form card */
.card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

.tabb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    background: var(--glass);
    padding: 6px;
    border-radius: 12px;
    width: max-content;
}

.tab {
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    transition: all .18s ease;
}

.tab.active {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.12);
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px
}

label {
    font-size: 13px;
    color: var(--muted)
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    outline: none;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}

/* THE BUTTON WITH BEND / MOVE EFFECT */
.btn {
    --elev: 10px;
    --pressY: 2px;
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transform-origin: center bottom;
    transition: transform 240ms cubic-bezier(.2, .9, .3, 1), box-shadow 240ms, filter 240ms;
    will-change: transform, box-shadow;
    box-shadow: 0 var(--elev) 22px rgba(59, 130, 246, 0.18);
    perspective: 800px;
    backface-visibility: hidden;
}

.btn:hover {
    transform: translateY(-6px) rotateX(8deg) rotateZ(-1deg);
    box-shadow: 0 22px 40px rgba(59, 130, 246, 0.16);
    filter: brightness(1.02);
}

.btn:active {
    transform: translateY(var(--pressY)) rotateX(0deg) rotateZ(0deg);
    box-shadow: 0 6px 14px rgba(2, 6, 23, 0.5);
    transition: transform 80ms;
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    box-shadow: none;
    transform-origin: center;
}

.btn.ghost:hover {
    transform: translateY(-4px) rotateX(6deg);
    color: var(--accent);
    border-color: rgba(59, 130, 246, 0.18);
}

.note {
    font-size: 13px;
    color: var(--muted)
}

.small {
    font-size: 13px;
    color: var(--muted)
}

/* ====== Animated Text with Logo ====== */
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.svg-text {
    width: 100%;
    height: auto;
}

/* HIVE TALK (same as before) */
.svg-text text {
    fill: none;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawFade 20s linear forwards;
}

/* Post it. Live it. Love it. (fade-in only) */
.svg-text.delay text {
    stroke: none;
    /* no stroke animation */
    fill: rgb(16, 212, 130);
    /* final visible color */
    opacity: 0;
    animation: fadeInOut 20s linear forwards;
    animation-delay: 0.02s;
    /* starts after HIVE TALK begins */
}

.password-wrap {

    position: relative;

    display: flex;
    align-items: center;
}

.password-wrap input {

    width: 100%;

    padding-right: 52px;
}

.toggle-pass {

    position: absolute;

    right: 12px;

    background: none;

    border: none;

    color: #94a3b8;

    cursor: pointer;

    font-size: 18px;

    transition: 0.2s ease;
}

.toggle-pass:hover {

    transform: scale(1.1);

    color: white;
}

@keyframes drawFade {
    0% {
        stroke-dashoffset: 1000;
        opacity: 1;
    }

    25% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes fadeInOut {

    0%,
    20% {
        opacity: 0;
    }

    /* hidden at start */
    30%,
    100% {
        opacity: 1;
    }

    /* slowly appear and stay */
}

/* Default arrow on all text */
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div {
    cursor: default;
}

/* Keep pointer for clickable items */
a,
button {
    cursor: pointer;
}

.reset-email {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    cursor: pointer;
}

.mobile-auth {
    display: none;
    justify-content: center;
    gap: 15px;
}

@media (max-width:900px) {

    body {
        align-items: center;
        justify-content: flex-start;
        padding: 20px;
    }

    .container {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 30px;
    }

    /* hero centered */
    .hero {
        text-align: left;
        padding: 40px 30px;
        min-height: 380px;
        max-width: 100%;
    }

    /* Left align description on mobile */

    .brand {
        justify-content: center;
    }

    h1 {
        font-size: 24px;
    }

    p.lead {
        text-align: center;
        font-size: 14px;
    }

    /* mobile login buttons */
    .mobile-auth {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 10px;
    }

    .mobile-auth .btn {
        width: 240px;
        padding: 14px 18px;
        font-size: 17px;
        border-radius: 14px;
    }

    /* form hidden until button click */
    .card {
        display: none;
    }

    body.show-form .hero {
        display: none;
    }

    body.show-form .mobile-auth {
        display: none;
    }

    body.show-form .card {
        display: block;
    }

    .mobile-auth .btn:first-child {
        font-weight: 700;
    }

}