/* Login and register only. Uses the homepage landing tokens. */

.jb-auth {
    background:
        radial-gradient(circle at 18% 12%, rgba(20, 184, 166, 0.18), transparent 30%),
        radial-gradient(circle at 78% 0%, rgba(37, 99, 235, 0.16), transparent 28%),
        linear-gradient(180deg, #F8FAFC 0%, #EEF6FF 100%);
    padding: 56px 0 80px;
}

.jb-auth-card {
    width: min(520px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 32px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(37, 99, 235, 0.1);
}

.jb-auth-card h1 {
    margin: 0;
    color: #0F172A;
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
}

.jb-auth-lede {
    margin: 14px 0 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

.jb-auth-card form {
    margin-top: 24px;
}

.jb-auth-card label {
    color: #0F172A;
    font-size: 14px;
    font-weight: 700;
}

.jb-auth-card input[type="text"],
.jb-auth-card input[type="email"],
.jb-auth-card input[type="password"] {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #fff;
    color: #0F172A;
    padding: 0 14px;
    box-shadow: none;
}

.jb-password-field {
    position: relative;
}

.jb-password-field input[type="password"],
.jb-password-field input[type="text"] {
    padding-right: 76px;
}

.jb-password-toggle {
    position: absolute;
    right: 10px;
    bottom: 8px;
    border: 0;
    border-radius: 8px;
    padding: 5px 7px;
    background: transparent;
    color: #2563EB;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.jb-password-toggle:hover,
.jb-password-toggle:focus-visible {
    background: rgba(37, 99, 235, 0.08);
    color: #0F766E;
    outline: none;
}

.jb-auth-card input[type="text"]:focus,
.jb-auth-card input[type="email"]:focus,
.jb-auth-card input[type="password"]:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
    outline: none;
}

.jb-auth-card input[type="checkbox"] {
    accent-color: #2563EB;
    width: 16px;
    height: 16px;
}

.jb-auth-card .jb-auth-note,
.jb-auth-card .text-gray-600,
.jb-auth-card .text-gray-500 {
    color: #475569;
}

.jb-auth-split {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.jb-auth-split hr {
    flex: 1;
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.jb-auth-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 22px;
}

.jb-auth-card a {
    color: #2563EB;
    font-weight: 700;
    text-decoration: none;
}

.jb-auth-card a:hover {
    color: #0F766E;
}

.jb-auth-card a.jb-auth-github {
    width: 100%;
    gap: 8px;
    color: #0F172A;
}

.jb-auth-card a.jb-auth-github:hover {
    color: #0F172A;
}

.jb-auth .jb-footer a[aria-current="page"],
.jb-auth-card a[aria-current="page"] {
    color: #0F766E;
}

@media (max-width: 760px) {
    .jb-auth {
        padding: 28px 0 48px;
    }

    .jb-auth-card {
        padding: 22px;
    }

    .jb-auth-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .jb-auth-actions .jb-btn {
        width: 100%;
    }
}
