/* ============================================================
   participant-register.css
   Matches the nd- design system: deep navy #1e3a8a, Inter font
   Split layout: decorative left panel + clean right form
   ============================================================ */

/* ---- Page shell: full-height split layout ---- */
.pr-page {
    display: flex;
    min-height: calc(100vh - 130px); /* subtract header height */
}

/* ============================================================
   LEFT PANEL — decorative navy
   ============================================================ */
.pr-panel {
    display: none; /* hidden on mobile */
    position: relative;
    width: 420px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
    overflow: hidden;
}

@media (min-width: 992px) {
    .pr-panel { display: flex; }
}

.pr-panel__inner {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

/* Logo */
.pr-panel__logo-img {
    width: 64px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Heading */
.pr-panel__heading {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
}

/* Subtitle */
.pr-panel__sub {
    font-size: 0.88rem;
    color: #bfdbfe;
    line-height: 1.7;
    margin: 0;
}

/* Feature list */
.pr-panel__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.pr-panel__features li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.85rem;
    color: #e0f2fe;
    font-weight: 500;
}

.pr-panel__feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #93c5fd;
}

/* Decorative circles */
.pr-panel__deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.pr-panel__deco-circle--1 {
    width: 300px; height: 300px;
    bottom: -80px; right: -80px;
}

.pr-panel__deco-circle--2 {
    width: 180px; height: 180px;
    top: -40px; right: 40px;
    background: rgba(255, 255, 255, 0.04);
}

.pr-panel__deco-circle--3 {
    width: 100px; height: 100px;
    bottom: 120px; left: -30px;
    background: rgba(255, 255, 255, 0.06);
}


/* ============================================================
   RIGHT FORM WRAP
   ============================================================ */
.pr-form-wrap {
    flex: 1;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    overflow-y: auto;
}

.pr-form-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 880px;
}

/* Card header */
.pr-form-card__header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.pr-form-card__title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 0.35rem;
}

.pr-form-card__subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}


/* ============================================================
   FORM FIELDS
   ============================================================ */
.pr-field {
    margin-bottom: 1.1rem;
}

.pr-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.pr-required {
    color: #ef4444;
    font-size: 0.85rem;
    margin-left: 1px;
}

/* Base input */
.pr-input {
    width: 100%;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.pr-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.pr-input:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.pr-input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.pr-input.is-valid {
    border-color: #16a34a;
}

/* Password wrapper */
.pr-input-group {
    position: relative;
}

.pr-input-group .pr-input {
    padding-right: 2.75rem;
}

.pr-eye-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    line-height: 1;
}

.pr-eye-btn:hover { color: #1e3a8a; }

.pr-eye-icon { font-size: 0.9rem; }

/* Feedback text */
.pr-feedback {
    display: none;
    font-size: 0.78rem;
    margin-top: 0.3rem;
    padding-left: 2px;
    color: #ef4444;
}

.pr-feedback.show,
.pr-feedback[style*="display: block"],
.form-field-feedback[style*="display: block"] { display: block; }

.pr-feedback--center { text-align: center; }


/* ============================================================
   CAPTCHA
   ============================================================ */
.pr-captcha-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pr-captcha-img-box {
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    max-width: 240px;
}

.pr-captcha-img {
    width: 100%;
    height: 48px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.pr-captcha-refresh {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.pr-captcha-refresh:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e3a8a;
    transform: rotate(90deg);
}


/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
.pr-submit-row {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.pr-submit-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

/* Inherits .btn-register-primary colors */
.btn-register-primary {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.btn-register-primary:hover {
    background-color: #1e3382 !important;
    border-color: #1e3382 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    transform: translateY(-1px);
}

/* Footer link */
.pr-footer-link {
    text-align: center;
    padding-top: 0.75rem;
}

.forgot-password-link {
    font-size: 0.82rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link strong {
    color: #1e3a8a;
    font-weight: 600;
}

.forgot-password-link:hover {
    color: #1e3a8a;
    text-decoration: none;
}


/* ============================================================
   CUSTOM NOTIFICATION MODAL — updated to match design system
   ============================================================ */
.custom-notification-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s 0.25s;
}

.custom-notification-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
}

.custom-notification-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 460px;
    overflow: hidden;
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.25s ease;
}

.custom-notification-overlay.show .custom-notification-content {
    transform: translateY(0) scale(1);
}

.custom-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.custom-notification-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.custom-notification-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s;
}

.custom-notification-close-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.custom-notification-body {
    padding: 1.5rem;
    background: #f8fafc;
}

.custom-notification-body p {
    margin: 0;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.6;
}

.custom-notification-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.custom-notification-footer .btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.4rem 1rem;
}

.custom-notification-footer .btn-info {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.4rem 1rem;
}

.custom-notification-footer .btn-info:hover {
    background-color: #1e3382;
}


/* ============================================================
   LEGACY COMPATIBILITY
   Keep old class names working for JS that references them
   ============================================================ */
.form-field-feedback  { color: #ef4444; display: none; font-size: 0.78rem; padding-top: 0.3rem; }
.captcha-error-message { display: none; }
.captcha-error-message.show { display: block; }
.password-wrapper { position: relative; }
.toggle-button {
    position: absolute;
    top: 50%; right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0 5px;
    color: #94a3b8;
}
.eye-icon { width: 20px; height: 20px; color: #94a3b8; }
#captchaImage { cursor: pointer; }
#captchaReloadBtn { cursor: pointer; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .pr-page { flex-direction: column; }
    .pr-form-wrap { padding: 1.5rem 1rem; }
    .pr-form-card { padding: 1.75rem 1.25rem; border-radius: 14px; }
}

@media (max-width: 480px) {
    .pr-form-card__title { font-size: 1.35rem; }
    .pr-captcha-img-box { max-width: 180px; }
}