body {
    background-color: #0c1317;
    /* Fundo inspirado na rede tecnológica com luzes de dados */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(37, 211, 102, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(37, 211, 102, 0.08) 0%, transparent 40%),
        linear-gradient(to bottom, #0c1317, #060a0c);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Grelha de Nodos Tecnológicos (CSS Pattern) */
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(rgba(37, 211, 102, 0.2) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Linhas de Conexão Sutis */
body::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        linear-gradient(90deg, rgba(37, 211, 102, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(37, 211, 102, 0.03) 1px, transparent 1px);
    background-size: 120px 120px;
    z-index: 0;
}

.main-card {
    background: rgba(17, 27, 33, 0.85);
    border: 1px solid rgba(37, 211, 102, 0.15);
    backdrop-filter: blur(30px);
    border-radius: 3.5rem;
    width: 100%;
    max-width: 500px;
    padding: 3.5rem 3rem;
    box-shadow: 
        0 50px 120px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(37, 211, 102, 0.05) inset;
    position: relative;
    z-index: 10;
}

.glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.25rem;
}

.glass-input:focus-within {
    border-color: #25D366;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
    transform: scale(1.01);
}

.btn-social {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    border-color: rgba(37, 211, 102, 0.4);
}

.btn-main {
    background: #25D366;
    color: #0c1317;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 1.25rem;
    padding: 1.25rem;
    transition: all 0.4s;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.25);
}

.btn-main:hover {
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.fade-up {
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(23, 33, 38, 1) inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Bold Typography */
.font-bold, .font-semibold, strong, b {
    letter-spacing: 0.025em !important;
}

/* Logo Adjustment */
.auth-logo {
    width: 280px !important;
    height: 58px !important;
}

@media (max-width: 768px) {
    .auth-logo {
        width: 70% !important;
        height: auto;
    }
}

/* Uniform Spacing */
.glass-input {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}
form .glass-input:first-of-type {
    margin-top: 0 !important;
}

.phone-field {
    background: transparent !important;
    border: none !important;
}

.phone-field .form-control {
    background: transparent !important;
    color: white !important;
    border: none !important;
}

.country-code-select .dropdown-toggle {
    background: transparent !important;
    color: white !important;
    border: none !important;
}

.country-code-select .dropdown-menu {
    background: #0c1317 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    z-index: 9999;
}

.country-code-select .dropdown-item {
    color: white !important;
}

.country-code-select .dropdown-item:hover {
    background: #111b21 !important;
}
