/* Hero Widget CSS based on light theme */
.thriveo-hero-wrapper {
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --border: #E2E8F0;
    --border2: #CBD5E1;
    --cyan: #0052cc;
    --cyan-lo: rgba(0, 82, 204, 0.08);
    /* Dark Blue */
    --white: #0F172A;
    /* Slate 900 for dark text */
    --muted: #64748B;
    --muted2: #475569;
    --github: #F0F6FF;
    --linkedin: #0A66C2;

    --bg-orb1: rgba(0, 82, 204, 0.05);
    --bg-orb2: rgba(220, 38, 38, 0.04);
    /* Red tint */

    background: var(--bg);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 480px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.th-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    overflow: hidden;
}

.th-left-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 30%, rgba(0, 82, 204, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
}

.th-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 82, 204, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 82, 204, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    animation: th-gridFade 6s ease-in-out infinite alternate;
}

@keyframes th-gridFade {
    from {
        opacity: .5
    }

    to {
        opacity: 1
    }
}

/* floating orbs */
.th-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: th-float 8s ease-in-out infinite alternate;
}

.th-orb1 {
    width: 320px;
    height: 320px;
    background: var(--bg-orb1);
    top: -80px;
    left: -60px;
}

.th-orb2 {
    width: 240px;
    height: 240px;
    background: var(--bg-orb2);
    bottom: 60px;
    right: 80px;
    animation-delay: -4s;
}

@keyframes th-float {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(20px, 30px) scale(1.05);
    }
}

.th-left-content {
    position: relative;
    z-index: 2;
}

.th-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 80px;
    text-decoration: none;
}

.th-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--cyan);
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #FFFFFF;
    /* White Text */
}

.th-logo-name {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.th-left-headline {
    font-family: 'Syne', sans-serif;
    font-size: clamp(36px, 4.5vw, 58px) !important;
    font-weight: 800 !important;
    line-height: 1.0 !important;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--white) !important;
}

.th-left-headline .th-hi {
    color: var(--cyan);
}

.th-left-sub {
    font-size: 16px;
    color: var(--muted2);
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 48px;
}

.th-stats-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.th-stat {
    display: flex;
    flex-direction: column;
}

.th-stat-n {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--cyan);
}

.th-stat-l {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: 2px;
}

.th-left-footer {
    position: relative;
    z-index: 2;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--muted);
}

/* ── RIGHT PANEL ────────────────────────────────── */
.th-right {
    background: var(--surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    position: relative;
    z-index: 3;
}

.th-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: .3;
}

.th-form-box {
    width: 100%;
    max-width: 360px;
    animation: th-fadeUp .6s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes th-fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.th-form-tag {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--cyan);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.th-form-title {
    font-family: 'Syne', sans-serif;
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: var(--white) !important;
}

.th-form-desc {
    font-size: 14px;
    color: var(--muted2);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ── ERROR ALERT ─────────────────────────────────── */
.th-alert {
    display: none;
    background: rgba(255, 59, 92, 0.08);
    border: 1px solid rgba(255, 59, 92, 0.25);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: #FF6B80;
    margin-bottom: 24px;
    line-height: 1.5;
}

.th-alert.th-visible {
    display: block;
    animation: th-fadeUp .3s ease both;
}

/* ── OAUTH BUTTONS ───────────────────────────────── */
.th-oauth-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: #FFFFFF;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .15s;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.th-oauth-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), transparent);
    opacity: 0;
    transition: opacity .2s;
}

.th-oauth-btn:hover::after {
    opacity: 1;
}

.th-oauth-btn:hover {
    transform: translateY(-1px);
    border-color: var(--cyan);
    color: var(--cyan);
}

.th-oauth-btn:active {
    transform: translateY(0);
}

.th-oauth-btn.th-github:hover {
    border-color: rgba(240, 246, 255, 0.3);
    background: rgba(240, 246, 255, 0.04);
}

.th-oauth-btn.th-linkedin:hover {
    border-color: rgba(10, 102, 194, 0.5);
    background: rgba(10, 102, 194, 0.08);
}

.th-oauth-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.th-oauth-label {
    flex: 1;
    text-align: left;
}

.th-oauth-arrow {
    color: var(--muted);
    font-size: 18px;
    transition: transform .2s;
}

.th-oauth-btn:hover .th-oauth-arrow {
    transform: translateX(3px);
    color: var(--cyan);
}

/* ── DIVIDER ─────────────────────────────────────── */
.th-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 20px;
    color: var(--muted);
    font-size: 12px;
    font-family: 'Space Mono', monospace;
}

.th-or-divider::before,
.th-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── LOADING STATE ───────────────────────────────── */
.th-oauth-btn.th-loading {
    pointer-events: none;
    opacity: .6;
}

.th-oauth-btn.th-loading .th-oauth-label::after {
    content: '...';
    animation: th-dots 1s infinite;
}

@keyframes th-dots {
    0% {
        content: '.';
    }

    33% {
        content: '..';
    }

    66% {
        content: '...';
    }
}

/* ── FEATURES LIST ───────────────────────────────── */
.th-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.th-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted2);
}

.th-feat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    flex-shrink: 0;
    opacity: .7;
}

/* ── FOOTER ──────────────────────────────────────── */
.th-form-footer {
    margin-top: 32px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    line-height: 1.7;
}

.th-form-footer a {
    color: var(--cyan);
    text-decoration: none;
}

.th-form-footer a:hover {
    text-decoration: underline;
}

/* ── DASHBOARD (pós login) ───────────────────────── */
#th-dashboard {
    width: 100%;
    max-width: 360px;
    animation: th-fadeUp .5s cubic-bezier(.22, 1, .36, 1) both;
}

.th-profile-card {
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.th-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.th-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    object-fit: cover;
}

.th-profile-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    background: var(--cyan-lo);
    display: grid;
    place-items: center;
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--cyan);
    flex-shrink: 0;
}

.th-profile-name {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--white);
}

.th-profile-email {
    font-size: 12px;
    color: var(--muted2);
}

.th-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    padding: 4px 10px;
    border-radius: 3px;
    margin-top: 6px;
}

.th-provider-badge.th-github {
    background: rgba(240, 246, 255, .08);
    color: #a0b0cc;
    border: 1px solid rgba(240, 246, 255, .12);
}

.th-provider-badge.th-linkedin {
    background: rgba(10, 102, 194, .12);
    color: #5ba4f5;
    border: 1px solid rgba(10, 102, 194, .25);
}

.th-profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.th-profile-row:last-child {
    border-bottom: none;
}

.th-profile-row-label {
    color: var(--muted);
}

.th-profile-row-value {
    color: var(--white);
    font-weight: 500;
}

.th-repos-title {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.th-repo-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
    transition: border-color .2s;
}

.th-repo-item:hover {
    border-color: var(--border2);
}

.th-repo-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 4px;
}

.th-repo-desc {
    font-size: 11px;
    color: var(--muted2);
    margin-bottom: 8px;
    line-height: 1.5;
}

.th-repo-meta {
    display: flex;
    gap: 12px;
}

.th-repo-tag {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--muted);
}

.th-btn-logout,
.th-btn-secondary {
    width: 100%;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid var(--border2);
    border-radius: 6px;
    color: var(--muted2);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s, color .2s;
    margin-top: 10px;
}

.th-btn-logout:hover {
    background: rgba(255, 59, 92, .08);
    color: #FF6B80;
    border-color: rgba(255, 59, 92, .2);
}

.th-btn-secondary:hover {
    background: var(--cyan-lo);
    color: var(--cyan);
    border-color: var(--cyan);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
    .thriveo-hero-wrapper {
        grid-template-columns: 1fr;
    }

    .th-left {
        display: none;
    }

    .th-right {
        min-height: 100vh;
        padding: 40px 20px;
    }
}