.panorama-registration {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2933;
    background: #040608;
}

.registration-hero {
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.35), transparent 55%),
                radial-gradient(circle at 80% 15%, rgba(118, 75, 162, 0.4), transparent 60%),
                linear-gradient(135deg, #060b1a 0%, #12072b 100%);
}

.registration-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.08), transparent 60%);
}

.registration-hero__content {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    color: #ffffff;
    padding: 0 24px;
}

.registration-hero__content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.registration-hero__content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.85;
}

.registration-form-section {
    margin-top: -80px;
    padding: 0 20px 80px;
}

.registration-card {
    max-width: 880px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(22px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 40px 80px rgba(8, 12, 30, 0.45);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

form#panorama-registration-form {
    display: grid;
    gap: 24px;
}

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

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

.form-message {
    border-radius: 12px;
    padding: 16px 18px;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
    font-size: 14px;
    line-height: 1.5;
}

.form-message[hidden] {
    display: none !important;
}

.form-field label,
.form-field legend {
    color: #f8fafc;
    font-weight: 600;
    font-size: 15px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"] {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 14px 16px;
    background: rgba(10, 15, 28, 0.8);
    color: #f1f5f9;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 15px;
}

.form-field input[readonly] {
    cursor: not-allowed;
    background: rgba(12, 18, 36, 0.65);
    border-color: rgba(102, 126, 234, 0.35);
}

.form-field input.invite-readonly {
    color: #c7d2fe;
}

.form-field input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.75);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.field-hint {
    font-size: 13px;
    color: rgba(203, 213, 225, 0.75);
}

.field-error {
    min-height: 16px;
    font-size: 13px;
    color: #f87171;
}

.role-options {
    display: grid;
    gap: 12px;
}

.role-option {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(11, 18, 35, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.role-option:hover {
    background: rgba(255,255,255,0.08);
    color: white;
    transform: translateY(-1px);
    border-color: rgba(102, 126, 234, 0.6);
}

.role-option input {
    margin-top: 6px;
}

.role-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #e2e8f0;
}

.role-label small {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.7);
}

fieldset.form-field {
    border: none;
    padding: 0;
    margin: 0;
}

.registration-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 56px;
}

.registration-submit:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(118, 75, 162, 0.35);
}

.registration-submit[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.loading-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.registration-submit[aria-busy="true"] .loading-spinner {
    display: inline-block;
}

.registration-submit[aria-busy="true"] .submit-text {
    opacity: 0.7;
}

/* Terms Agreement Checkbox */
.form-field--terms {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

.form-field--terms .checkbox-text {
    font-size: 14px;
    line-height: 1.6;
}

.form-field--terms .checkbox-text a {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.form-field--terms .checkbox-text a:hover {
    color: #c7d2fe;
    text-decoration: underline;
}

.form-field--terms .field-error {
    margin-top: 8px;
}

.form-field--terms .field-error:empty {
    display: none;
}

.registration-faq {
    padding: 0 20px 120px;
}

.faq-card {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(10, 18, 32, 0.92);
    border-radius: 22px;
    padding: 32px 40px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    color: #e2e8f0;
    box-shadow: 0 24px 50px rgba(9, 14, 28, 0.4);
}

.faq-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.faq-card ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px;
}

.faq-card li {
    position: relative;
    padding-left: 28px;
    line-height: 1.6;
}

.faq-card li::before {
    content: "•";
    position: absolute;
    left: 8px;
    top: 0;
    color: rgba(118, 107, 235, 0.8);
    font-size: 24px;
    line-height: 1.2;
}

.registration-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 13, 23, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.registration-modal[hidden] {
    display: none;
}

.registration-modal__dialog {
    max-width: 460px;
    width: 100%;
    background: linear-gradient(135deg, rgba(11, 18, 35, 0.95), rgba(15, 22, 40, 0.95));
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 30px 70px rgba(7, 12, 29, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.35);
}

.registration-modal__content h2 {
    color: #f8fafc;
    font-size: 24px;
    margin-bottom: 12px;
}

.modal-intro {
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: 16px;
}

.modal-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    color: rgba(226, 232, 240, 0.9);
}

.modal-steps li {
    position: relative;
    padding-left: 28px;
}

.modal-steps li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(102, 126, 234, 0.85);
}

.registration-modal__cta {
    margin-top: 28px;
    width: 100%;
    padding: 14px 0;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #4fd1c5 0%, #22d3ee 100%);
    color: #04121f;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.registration-modal__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.35);
}

body.registration-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .registration-hero__content h1 {
        font-size: 32px;
    }

    .registration-card {
        padding: 32px 24px;
    }

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

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

