* {
    font-family: "Poppins", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

body {
    position: relative;
    background-color: #07070a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.pattern-overlay {
    display: none;
}

/* Background Blobs (Liquid-like dynamic lighting) */
.liquid-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -2;
    background-color: #07070a;
    pointer-events: none;
}

/* Blobs estáticos — sem animação para melhor performance */
.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    mix-blend-mode: screen;
    pointer-events: none;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.65) 0%, rgba(79, 70, 229, 0.2) 100%);
    top: -10%;
    left: -5%;
}

.blob-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.6) 0%, rgba(59, 130, 246, 0.15) 100%);
    bottom: -15%;
    right: -5%;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.5) 0%, rgba(217, 70, 239, 0.12) 100%);
    top: 45%;
    left: 45%;
    transform: translate(-50%, -50%);
}

.sora-font {
    font-family: "Poppins", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

/* Floating 3D Tags Container (Left Side) */
.floating-tags-container {
    position: relative;
    height: 480px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.floating-tag {
    position: absolute;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 
                inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.floating-tag:hover {
    transform: scale(1.1) translateY(-6px) !important;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.25),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
    z-index: 10;
}

/* Individual tag animations and borders representing dynamic lighting */
@keyframes float1 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes float2 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(22px) rotate(-3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes float3 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.tag-1 { top: 10%; left: 8%; animation: float1 6s infinite ease-in-out; border-left: 2px solid rgba(124, 58, 237, 0.6); }
.tag-2 { top: 22%; right: 12%; animation: float2 7.5s infinite ease-in-out; border-left: 2px solid rgba(6, 182, 212, 0.6); }
.tag-3 { bottom: 25%; left: 14%; animation: float3 5.8s infinite ease-in-out; border-left: 2px solid rgba(236, 72, 153, 0.6); }
.tag-4 { bottom: 15%; right: 8%; animation: float1 6.8s infinite ease-in-out; border-left: 2px solid rgba(234, 179, 8, 0.6); }
.tag-5 { top: 48%; left: 38%; animation: float2 8.5s infinite ease-in-out; border-left: 2px solid rgba(16, 185, 129, 0.6); }

/* Typography */
.text {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 15px 0 25px 0;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.text span {
    font-family: "Poppins", sans-serif;
}

.text .typing {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.img-perfil {
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50%;
}

/* Glass Card (Remodeled .tags class) */
.tags {
    margin-top: 100px;
    background: rgba(18, 18, 24, 0.45) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border-radius: 28px !important; 
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 40px 35px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 
                inset 0 1px 2px rgba(255, 255, 255, 0.18) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tags:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.55), 
                inset 0 1px 2px rgba(255, 255, 255, 0.28) !important;
}

.glass-inner h1 {
    font-weight: 800;
    font-size: 3.2rem;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    letter-spacing: -1.8px;
}

.glass-inner hr {
    border-color: rgba(255, 255, 255, 0.08) !important;
    margin: 25px 0;
    opacity: 1;
}

.glass-inner label {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* Premium Inputs */
.form-control {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    color: #fff !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Corrige autofill do browser que deixa fundo branco */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(18, 18, 24, 0.95) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-1px);
}

/* Premium Custom Buttons */
.btn-custom {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    color: white !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 13px 24px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25) !important;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.4) !important;
    filter: brightness(1.1);
    color: white !important;
}

.btn-custom:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* Entrar Button styled uniquely as an iOS glass element */
#btn_login {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

#btn_login:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08) !important;
}

#btn_login:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ================= NAVBAR DYNAMIC ISLAND GLASS ================= */
.navbar-glass {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    padding: 0;
}

.navbar-inner {
    margin: 0 auto;
    width: min(850px, 94vw); /* slim Dynamic Island capsule shape */
    height: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 15, 20, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-inner:hover {
    background: rgba(15, 15, 20, 0.6);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

#navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

#navbar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* ================= BACKGROUND TAGS CLOUD CLASS (keep legacy support if needed) ================= */
.bg-tags {
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
}

.bg-tags::before {
    content: "Tags  Tags  Tags  Tags  Tags  Tags  Tags  Tags  Tags  Tags";
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    font-size: 64px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1.6;
    word-spacing: 40px;
    transform: rotate(-15deg);
    pointer-events: none;
    white-space: pre-wrap;
}

/* Responsiveness tweaks for index */
@media (max-width: 768px) {
    .floating-tags-container {
        height: 250px;
        margin-top: 20px;
    }
    .floating-tag {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    .tags {
        margin-top: 30px;
        padding: 25px 20px !important;
    }
    .glass-inner h1 {
        font-size: 2.5rem;
    }
    .text {
        font-size: 1.6rem;
    }
}

/* Support for registration page jumbotron as a glass card */
.jumbotron {
    background: rgba(18, 18, 24, 0.45) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border-radius: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 
                inset 0 1px 2px rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    padding: 35px 30px !important;
}

/* ================= SIGNUP STEP WIZARD ================= */
.signup-step {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.signup-step.active {
    display: block;
}

.signup-step.fade-in-active {
    opacity: 1;
    transform: translateX(0);
}

/* ===== MOBILE SCALE OPTIMIZATION OVERRIDES ===== */
@media (max-width: 767.98px) {
    body {
        padding-top: 80px !important;
    }

    .navbar-glass {
        top: 12px !important;
    }

    .navbar-inner {
        height: 50px !important;
        padding: 0 16px !important;
        border-radius: 25px !important;
    }

    .navbar-inner img {
        width: 32px !important;
        height: 32px !important;
    }

    .navbar-glass #navbar_toggle .material-icons {
        font-size: 24px !important;
    }

    #navbar_menu {
        top: 68px !important;
    }

    .mt-28 {
        margin-top: 16px !important;
    }

    .mb-16 {
        margin-bottom: 24px !important;
    }

    .glass-inner h1 {
        font-size: 2.2rem !important;
        letter-spacing: -1px !important;
    }

    .text {
        font-size: 1.4rem !important;
        margin: 10px 0 20px 0 !important;
    }

    .text-4xl {
        font-size: 1.8rem !important;
        margin-bottom: 12px !important;
    }

    .text-lg {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    .tags, .jumbotron {
        padding: 20px 16px !important;
        border-radius: 20px !important;
        margin-top: 20px !important;
    }

    .form-control {
        padding: 10px 12px !important;
        font-size: 0.88rem !important;
        border-radius: 10px !important;
    }

    .btn-custom {
        padding: 10px 18px !important;
        font-size: 0.92rem !important;
        border-radius: 10px !important;
    }

    .signup-step h4 {
        font-size: 0.95rem !important;
        margin-bottom: 12px !important;
    }

    .signup-step small {
        font-size: 0.72rem !important;
    }

    /* Mobile Navbar Menu styling */
    #navbar_menu:not(.hidden) {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 68px !important;
        right: 4vw !important;
        width: 92vw !important;
        padding: 24px !important;
        background: rgba(7, 7, 10, 0.96) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-radius: 20px !important;
        z-index: 99999 !important;
        text-align: center !important;
        gap: 16px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    }
}

