/* Public fallback stylesheet for registration pages without requiring Vite. */
:root {
    --rcti-blue-deep: #041a78;
    --rcti-blue: #0a42bf;
    --rcti-blue-soft: #2d7dff;
    --rcti-ice: #eaf3ff;
    --rcti-gold: #ffd37f;
    --rcti-danger: #f75858;
    --rcti-card: rgba(255, 255, 255, 0.96);
}

* {
    box-sizing: border-box;
}

body.registration-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #07204f;
    background:
        radial-gradient(1100px 600px at 10% -10%, rgba(64, 140, 255, 0.36), transparent 60%),
        radial-gradient(800px 480px at 100% 110%, rgba(123, 56, 255, 0.18), transparent 55%),
        linear-gradient(135deg, #030a31, #06248b 45%, #0b4cd1);
    position: relative;
    overflow-x: hidden;
}

.page-bg-glow {
    position: fixed;
    border-radius: 999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.page-bg-glow-top {
    width: 360px;
    height: 360px;
    background: rgba(71, 183, 255, 0.35);
    top: -140px;
    right: -80px;
}

.page-bg-glow-bottom {
    width: 340px;
    height: 340px;
    background: rgba(255, 212, 127, 0.16);
    bottom: -120px;
    left: -100px;
}

.registration-shell,
.success-shell {
    width: min(1100px, 92%);
    margin: 52px auto;
    position: relative;
    z-index: 2;
}

.registration-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
    max-width: 760px;
}

.hero-card,
.form-card,
.success-card {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
    box-shadow: 0 24px 55px rgba(0, 13, 58, 0.36);
}

.hero-card {
    overflow: hidden;
    background:
        linear-gradient(170deg, rgba(2, 17, 79, 0.78), rgba(4, 26, 120, 0.9)),
        repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 16px);
    display: block;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-fallback {
    padding: 42px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-kicker {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--rcti-gold);
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-fallback h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-sub {
    margin-top: 14px;
    font-size: 1rem;
    color: #d8e8ff;
}

.form-card,
.success-card {
    background: var(--rcti-card);
    padding: 30px;
}

.label {
    margin: 0;
    color: var(--rcti-blue);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    font-size: 0.72rem;
}

.form-header h2,
.success-card h1 {
    margin: 8px 0 8px;
    font-size: clamp(1.38rem, 2vw, 2rem);
    line-height: 1.2;
    color: #05206a;
}

.sub {
    margin: 0;
    color: #365386;
    font-size: 0.94rem;
}

.registration-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #123370;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid #bfd4ff;
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 0.95rem;
    color: #0f2458;
    background: #fff;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field select:focus {
    border-color: var(--rcti-blue-soft);
    box-shadow: 0 0 0 4px rgba(45, 125, 255, 0.2);
}

.submit-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rcti-blue), var(--rcti-blue-soft));
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 12px 16px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(10, 66, 191, 0.28);
}

.submit-btn:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn .btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.submit-btn.is-loading .btn-label {
    display: none;
}

.submit-btn.is-loading .btn-loading {
    display: inline-flex;
}

.btn-spinner {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    animation: spin 0.75s linear infinite;
}

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

.alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 16px;
    font-size: 0.91rem;
}

.alert-error {
    background: #fff1f1;
    border: 1px solid #ffcece;
    color: #a72a2a;
}

.alert-warning {
    background: #fff7e9;
    border: 1px solid #ffe3b2;
    color: #946600;
}

.error-text {
    margin: 0;
    color: var(--rcti-danger);
    font-size: 0.84rem;
}

.success-shell {
    max-width: 760px;
}

.success-card {
    text-align: left;
}

.invitation-box {
    margin-top: 18px;
    background: #f4f8ff;
    border: 1px solid #d6e5ff;
    border-radius: 12px;
    padding: 14px;
    line-height: 1.65;
}

.invitation-box a {
    color: #0c45c0;
    word-break: break-all;
}

@media (max-width: 980px) {
    .registration-shell {
        max-width: 760px;
    }
}

@media (max-width: 640px) {
    .registration-shell,
    .success-shell {
        width: min(1080px, 94%);
        margin: 20px auto 24px;
    }

    .form-card,
    .success-card {
        padding: 20px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }
}
