* {
    box-sizing: border-box;
}

:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 50% -20%,
            #1d2939 0%,
            #0b1018 42%,
            #070a0f 100%
        );
    color: #f4f7fb;
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.connect-card {
    width: 100%;
    max-width: 560px;
    padding: 34px;
    border: 1px solid #273244;
    border-radius: 18px;
    background: rgba(14, 20, 30, 0.92);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.brand {
    display: flex;
    gap: 15px;
    align-items: center;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #ff9900;
    color: #111827;
    font-weight: 800;
}

.brand h1 {
    margin: 0;
    font-size: 20px;
}

.brand p {
    margin: 5px 0 0;
    color: #8f9bad;
    font-size: 12px;
}

.divider {
    height: 1px;
    background: #252e3c;
    margin: 28px 0;
}

.heading h2 {
    margin: 0;
    font-size: 25px;
}

.heading p {
    margin: 9px 0 28px;
    color: #9ba7b8;
    line-height: 1.6;
    font-size: 14px;
}

.field {
    margin-bottom: 19px;
}

label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #dce3ec;
    font-size: 13px;
    font-weight: 600;
}

label span {
    color: #778397;
    font-weight: 400;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #303b4d;
    border-radius: 9px;
    background: #0a0f17;
    color: #f5f7fa;
    padding: 12px 13px;
    outline: none;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #ff9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

textarea {
    min-height: 78px;
    resize: vertical;
}

.security-note {
    margin: 25px 0;
    padding: 14px 16px;
    border: 1px solid #293648;
    border-radius: 10px;
    background: #0b121c;
}

.security-note strong {
    font-size: 13px;
}

.security-note p {
    margin: 6px 0 0;
    color: #8f9bad;
    font-size: 12px;
    line-height: 1.55;
}

button {
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 13px;
    background: #ff9900;
    color: #111;
    font-weight: 750;
    font-size: 14px;
    cursor: pointer;
}

button:hover {
    filter: brightness(1.06);
}

button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.status {
    min-height: 20px;
    margin-top: 15px;
    text-align: center;
    color: #9ba7b8;
    font-size: 13px;
}

.scan-message {
    margin-top: 18px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;

    border: 1px solid #293648;
    border-radius: 10px;
    background: #0b121c;
}

.scan-message[hidden] {
    display: none;
}

.scan-message strong {
    display: block;
    font-size: 13px;
}

.scan-message p {
    margin: 5px 0 0;
    color: #8f9bad;
    font-size: 12px;
    line-height: 1.55;
}

.spinner {
    width: 20px;
    height: 20px;
    flex-shrink: 0;

    border: 2px solid #374151;
    border-top-color: #ff9900;
    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}