* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --primary: #0f7cff;
    --primary-dark: #0a5cd6;
    --accent: #22d3ee;

    --background: #f8fbff;

    --surface: #ffffff;
    --surface-soft: #f3f8ff;

    --text: #111827;
    --muted: #60738c;

    --border: #dbeafe;

    --white: #ffffff;

}


body {

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

    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);

    color: var(--text);

    min-height: 100vh;

}


.page {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 28px;

}


.registration-card {

    width: 100%;

    max-width: 520px;

    position: relative;

    background: var(--surface);

    border-radius: 32px;

    padding: 36px;

    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.1);

    overflow: hidden;

}

.registration-card::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -36px;
    width: 180px;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 60%);
    transform: rotate(-10deg);
    pointer-events: none;
}

.registration-card::after {
    content: "";
    position: absolute;
    right: -14px;
    bottom: 24px;
    width: 14px;
    height: 72%;
    background: repeating-linear-gradient(
        180deg,
        rgba(14, 165, 233, 0.2),
        rgba(14, 165, 233, 0.2) 12px,
        transparent 12px,
        transparent 24px
    );
    pointer-events: none;
}


.brand-header {

    text-align: center;

    margin-bottom: 28px;

    position: relative;

}


.brand-mark {

    width: 58px;
    height: 58px;

    margin: 0 auto 14px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #7c3aed
        );

    color: white;

    font-size: 30px;

    font-weight: 800;

}


.brand-small {

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: var(--primary);

}


.brand-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.brand-header h1 {

    font-size: 34px;

    letter-spacing: 3px;

    margin-top: 8px;

    margin-bottom: 10px;

}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}


.brand-subtitle {

    color: var(--primary-dark);

    font-size: 15px;

    letter-spacing: 0.2px;

}

.event-banner {
    display: inline-flex;
    gap: 14px;
    margin-top: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
}


.form-heading {

    margin-bottom: 24px;

}


.form-heading h2 {

    font-size: 24px;

    margin-bottom: 6px;

}


.form-heading p {

    color: var(--muted);

    font-size: 14px;

}


.input-group {

    margin-bottom: 18px;

}


.input-group label {

    display: block;

    font-size: 13px;

    font-weight: 650;

    margin-bottom: 7px;

}


.input-group input,
.input-group select {

    width: 100%;

    min-height: 52px;

    padding: 0 16px;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: var(--surface-soft);

    color: var(--text);

    font-size: 15px;

    outline: none;

    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;

}

.input-group input::placeholder,
.input-group select option:first-child {
    color: #94a3b8;
}

.input-group input:focus,
.input-group select:focus {

    border-color: var(--primary);

    background: white;

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.12);

    transform: translateY(-1px);

}


.register-button {

    width: 100%;

    height: 52px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #7c3aed
        );

    color: white;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: transform 0.2s, box-shadow 0.2s;

}


.register-button:hover {

    transform: translateY(-1px);

    box-shadow:
        0 10px 25px rgba(91, 33, 182, 0.25);

}


.register-button:disabled {

    opacity: 0.7;

    cursor: not-allowed;

    transform: none;

}


.error-message {

    display: none;

    padding: 12px;

    margin-bottom: 15px;

    border-radius: 10px;

    background: #fef2f2;

    color: #b91c1c;

    font-size: 13px;

}


.loader {

    display: inline-block;

    width: 18px;
    height: 18px;

    border: 2px solid rgba(255,255,255,0.4);

    border-top-color: white;

    border-radius: 50%;

    animation: spin 0.8s linear infinite;

}


.hidden {

    display: none;

}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


.form-footer {

    text-align: center;

    margin-top: 24px;

    color: #a3a3a3;

    font-size: 11px;

}


@media (max-width: 520px) {

    .page {

        padding: 14px;

        align-items: flex-start;

        padding-top: 25px;

    }

    .registration-card {

        padding: 25px 20px;

        border-radius: 22px;

    }

    .brand-header h1 {

        font-size: 32px;

    }

}