:root {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: #111827;
    background: #f3f4f6;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background:
        radial-gradient(
            circle at top,
            #ffffff 0,
            #f3f4f6 48%,
            #e5e7eb 100%
        );
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.setup-card {
    width: 100%;
    max-width: 470px;
    padding: 38px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 24px 60px rgba(17, 24, 39, 0.10);
}

.setup-card-wide {
    max-width: 760px;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border-radius: 14px;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}




h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(28px, 5vw, 36px);
    line-height: 1.15;
}

.subtitle {
    margin: 14px 0 28px;
    color: #6b7280;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
}

.eyebrow {
    margin: 0 0 8px;
    color: #6b7280;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid #d1d5db;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.form-group input:focus {
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.10);
}

.primary-button,
.secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 13px 18px;
    border: 0;
    border-radius: 11px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.primary-button {
    background: #111827;
    color: #ffffff;
}

.primary-button:hover {
    background: #1f2937;
}

.secondary-button {
    margin-top: 24px;
    background: #e5e7eb;
    color: #111827;
}

.security-note {
    margin-top: 22px;
    color: #6b7280;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}

.alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.email-summary {
    margin: 18px 0 24px;
    padding: 13px 16px;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    background: #eff6ff;
    color: #1e3a8a;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.device-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 155px;
    padding: 22px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.device-card:hover {
    transform: translateY(-2px);
    border-color: #9ca3af;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.device-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 13px;
    border-radius: 12px;
    background: #f3f4f6;
    font-size: 20px;
    font-weight: 800;
}

.device-title {
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 800;
}

.device-description {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.text-link {
    display: block;
    margin-top: 24px;
    color: #4b5563;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 600px) {
    .page {
        align-items: flex-start;
        padding: 16px;
    }

    .setup-card {
        margin-top: 18px;
        padding: 27px 20px;
        border-radius: 16px;
    }

    .device-grid {
        grid-template-columns: 1fr;
    }

    .device-card {
        min-height: 130px;
    }
}

.installation-steps {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.installation-steps h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.installation-steps ol {
    margin: 0;
    padding-left: 22px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.installation-steps li + li {
    margin-top: 7px;
}