@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,300;8..144,400;8..144,600&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* prevent scroll */
    font-family: 'Roboto Flex', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Fullscreen fixed background image */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('/static/img/Group%201.png') center center / cover no-repeat fixed;
    z-index: -1;
}

/* Centered card */
.page {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.card {
    width: 100%;
    max-width: 420px;
    background: #121212; /* requested block background */
    color: #ffffff;
    border-radius: 16px; /* stronger rounding */
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    padding: 28px; /* a bit more inner spacing for equal side padding */
}

h1 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center; /* center the title */
}

label {
    display: block;
    margin: 12px 0 6px;
    font-size: 14px;
}

input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #2a2a2a;
    border-radius: 12px; /* stronger rounding */
    font-size: 14px;
    outline: none;
    background: #1b1b1b;
    color: #e5e7eb;
    box-sizing: border-box; /* keep equal spacing from card edges */
}

.row {
    display: flex;
    gap: 10px;
    align-items: center;
}

button {
    cursor: pointer;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px; /* stronger rounding */
    background: #111827;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

button.secondary {
    background: #374151;
    display: block;
    margin: 18px auto 0; /* center and add a bit more gap from row */
    width: 60%;
    max-width: 260px; /* wider register button */
}

#message { margin-top: 12px; min-height: 22px; }

.success { color: #34d399; }
.error { color: #f87171; }

/* Wallet row sizing */
#connectWallet {
    min-width: 150px; /* wider connect button */
}

.wallet-address {
    width: 260px; /* make wallet display field smaller */
}

/* Referral section buttons */
#referralSection {
    margin-top: 20px;
    text-align: center;
}

#referralSection .button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

#copyReferralBtn, #shareTwitterBtn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 140px;
}

#copyReferralBtn {
    background: #007bff;
    color: white;
}

#copyReferralBtn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

#shareTwitterBtn {
    background: #1da1f2;
    color: white;
}

#shareTwitterBtn:hover {
    background: #0d8bd9;
    transform: translateY(-1px);
}

/* Mobile behavior: keep height, crop sides (cover already does this) */
@media (max-width: 480px) {
    .card { padding: 20px; }
    
    #referralSection .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    #copyReferralBtn, #shareTwitterBtn {
        width: 100%;
        max-width: 200px;
    }
}


