/* Register page (registerv2.html): split screen like the login page -
   form on the left, brand photo panel on the right. Brand colours from
   style.css: --primary-color #2D2257 (indigo), --secondary-color #D71D78
   (magenta), lavender #F5EFFF. Loaded only on this page. */

.reg-layout {
    display: flex;
    min-height: 100vh;
    background: #ffffff;
}

/* --- left: the form ------------------------------------------------------ */

.reg-form-side {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 56px 48px;
    background:
        radial-gradient(circle at 0% 0%, rgba(215, 29, 120, 0.08), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(45, 34, 87, 0.06), transparent 45%),
        #ffffff;
}

.reg-logo {
    margin-bottom: 28px;
    text-align: center;
}

.reg-card {
    width: 100%;
    max-width: 640px;
}

.reg-heading {
    text-align: center;
    margin-bottom: 32px;
}

.reg-eyebrow {
    display: inline-block;
    background: #F5EFFF;
    color: var(--secondary-color);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.reg-heading h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.3rem;
    margin-bottom: 8px;
}

.reg-heading h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: var(--secondary-color);
}

.reg-heading p {
    color: #4a5568;
    margin: 0;
}

/* Numbered section titles: 1 Your event, 2 Your account */
.reg-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0 22px;
}

.reg-step {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(215, 29, 120, 0.3);
}

.reg-section-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.reg-section-title p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

.reg-divider {
    height: 1px;
    margin: 30px 0;
    background: linear-gradient(90deg, transparent, rgba(215, 29, 120, 0.35), transparent);
}

.reg-card .creat-evnt-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(215, 29, 120, 0.15);
    outline: none;
}

/* Packages as selectable cards (priceOptionCard: radio + label + br) */
.reg-packages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.reg-packages br {
    display: none;
}

.reg-packages input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.reg-packages label {
    flex: 1 1 180px;
    margin: 0;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.reg-packages label:hover {
    border-color: var(--secondary-color);
}

.reg-packages input[type="radio"]:checked + label {
    border-color: var(--secondary-color);
    background: #fdf2f8;
    box-shadow: 0 4px 14px rgba(215, 29, 120, 0.18);
}

.reg-packages input[type="radio"]:focus-visible + label {
    outline: 3px solid rgba(215, 29, 120, 0.4);
    outline-offset: 2px;
}

.reg-card .creat-evnt-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: var(--secondary-color);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.reg-card .creat-evnt-submit-btn:hover {
    background: #b91c5c;
}

.reg-card .creat-evnt-submit-btn:active {
    transform: translateY(1px);
}

.reg-login-link {
    text-align: center;
    color: #6b7280;
    margin: 22px 0 0;
}

/* --- right: photo panel -------------------------------------------------- */

.reg-visual {
    flex: 1 1 45%;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.reg-visual-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reg-visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(45, 34, 87, 0.05) 25%, rgba(45, 34, 87, 0.92) 100%);
}

.reg-visual-overlay h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 22px;
}

.reg-visual-overlay h2 span {
    color: #ff7ab8;
}

.reg-visual-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reg-visual-overlay li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.reg-visual-overlay li i {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .reg-visual {
        display: none;
    }

    .reg-form-side {
        padding: 24px 16px 40px;
    }

    .reg-heading h1 {
        font-size: 1.9rem;
    }
}

/* --- Create / edit event page (manageevent.html) uses the same sections ---- */

.evt-form {
    margin: 0 auto;
}

.evt-cover-preview img {
    display: none;            /* shown by the page script once a photo is chosen */
    max-width: 100%;
    max-height: 260px;
    margin-top: 12px;
    border-radius: 12px;
    object-fit: cover;
}

.evt-form .creat-evnt-upload-area:hover {
    border-color: var(--secondary-color);
    background: rgba(215, 29, 120, 0.05);
}

.evt-form .coupon-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(215, 29, 120, 0.15);
    outline: none;
}
