/* ============================================
   ESWATINI FUNZONE — REGISTER PAGE STYLES
   ============================================ */

/* Page Base */
.auth-page {
    background: var(--bg-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Animated Background Blobs ── */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    animation: blobFloat 8s ease-in-out infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-purple);
    top: -120px;
    left: -120px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-red);
    bottom: 0;
    right: -100px;
    animation-delay: 2s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--teal);
    top: 50%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes blobFloat {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.15) translate(30px, -30px); }
}

/* ── Navbar Override for Auth Pages ── */
.auth-page .navbar {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-sm);
}

.auth-page .nav-container {
    justify-content: space-between;
}

/* ── Main Layout ── */
.auth-main {
    position: relative;
    min-height: 100vh;
    padding: 110px 1.5rem 4rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1;
}

.auth-container {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    position: relative;
    z-index: 1;
}

/* ── Page Header ── */
.auth-header {
    text-align: center;
    animation: slideDown 0.7s cubic-bezier(0.5, 0, 0, 1) forwards;
}

.auth-logo-badge {
    font-size: 4rem;
    display: inline-block;
    animation: bounceBadge 1.2s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 8px rgba(155, 81, 224, 0.3));
    margin-bottom: 0.5rem;
}

@keyframes bounceBadge {
    from { transform: translateY(0) rotate(-5deg); }
    to   { transform: translateY(-10px) rotate(5deg); }
}

.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.04);
}

.auth-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ── Tier Selector ── */
.tier-label {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-purple);
    font-weight: 700;
    margin-bottom: 1rem !important;
}

.tier-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding: 1.8rem 1.2rem;
    border-radius: 24px;
    background: var(--bg-white);
    border: 3px solid #e8eaf0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tier-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 21px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.tier-card > * { position: relative; z-index: 1; }

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

/* Active state */
.tier-card.active {
    border-color: var(--primary-purple);
    box-shadow: 0 8px 30px rgba(155, 81, 224, 0.3);
    transform: translateY(-4px);
}

.tier-card.active::before { opacity: 1; }

.tier-card.active .tier-icon,
.tier-card.active .tier-info h3,
.tier-card.active .tier-info p {
    color: #fff;
}

.tier-card.active .perk {
    background: rgba(255,255,255,0.25);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.tier-card.active .tier-check {
    background: rgba(255,255,255,0.9);
    color: var(--primary-purple);
    opacity: 1;
    transform: scale(1);
}

.tier-card:hover:not(.active) {
    border-color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tier-icon {
    font-size: 2.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
    transition: color 0.3s;
}

.tier-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-purple);
    margin-bottom: 0.2rem;
    transition: color 0.3s;
}

.tier-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    transition: color 0.3s;
}

.tier-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.perk {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    background: rgba(155, 81, 224, 0.08);
    border: 2px solid rgba(155, 81, 224, 0.2);
    color: var(--primary-purple);
    transition: all 0.3s;
}

.perk-limited {
    background: rgba(0, 210, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.3);
    color: #0099cc;
}

.tier-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    opacity: 0;
    transform: scale(0);
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-top: 0.3rem;
}

/* ── Form Card ── */
.auth-form-card {
    background: var(--bg-white);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(155, 81, 224, 0.12);
    animation: fadeUpIn 0.6s ease forwards;
    transition: all 0.4s ease;
}

@keyframes fadeUpIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-card-header {
    margin-bottom: 1.8rem;
}

.form-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
}

.full-badge {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(155, 81, 224, 0.35);
}

.visitor-badge {
    background: var(--gradient-cool);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

/* ── Form Groups ── */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label:not(.checkbox-label) {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-purple);
    font-size: 1.1rem;
}

/* Input Wrapper with Icons */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.1rem;
    font-size: 1.2rem;
    z-index: 1;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3rem;
    border: 3px solid #eef2f5;
    border-radius: 16px;
    font-family: var(--font-text);
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition);
    background: #fcfdfe;
    color: var(--text-dark);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: #fff;
    box-shadow: 0 6px 20px rgba(155, 81, 224, 0.15);
}

.input-wrapper input:valid:not(:placeholder-shown) {
    border-color: #00c88c;
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 1;
}

.toggle-password:hover { opacity: 1; }

/* ── Password Strength ── */
.password-strength {
    height: 6px;
    background: #eef2f5;
    border-radius: 10px;
    margin-top: 0.6rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 10px;
    transition: width 0.4s ease, background 0.4s ease;
}

.strength-text {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    margin-top: 0.3rem !important;
    margin-bottom: 0 !important;
}

.match-msg {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    margin-top: 0.4rem !important;
    margin-bottom: 0 !important;
}

/* ── Checkbox ── */
.form-check { margin-bottom: 1.8rem; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 3px solid #dde1e9;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .custom-check {
    background: var(--gradient-primary);
    border-color: var(--primary-purple);
    box-shadow: 0 3px 10px rgba(155, 81, 224, 0.35);
}

.checkbox-label input[type="checkbox"]:checked + .custom-check::after {
    content: '✓';
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
}

.link-accent {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.link-accent:hover { color: var(--primary-purple); }

/* ── Auth Buttons ── */
.btn-auth {
    width: 100%;
    padding: 1.15rem 2rem;
    border-radius: 50px;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-register {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(155, 81, 224, 0.45);
}

.btn-register:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 35px rgba(155, 81, 224, 0.55);
}

.btn-register:active { transform: scale(0.98); }

.btn-visitor {
    background: var(--gradient-cool);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.35);
}

.btn-visitor:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 35px rgba(0, 210, 255, 0.5);
}

.btn-visitor-outline {
    background: transparent;
    color: #0099cc;
    border: 3px solid var(--teal);
    box-shadow: none;
}

.btn-visitor-outline:hover {
    background: var(--gradient-cool);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.35);
    transform: translateY(-3px);
}

/* ── Access Summary ── */
.access-summary {
    margin-top: 2rem;
    padding: 1.4rem;
    background: linear-gradient(135deg, rgba(155,81,224,0.06), rgba(255,51,102,0.04));
    border-radius: 16px;
    border: 2px solid rgba(155, 81, 224, 0.12);
}

.visitor-access {
    background: linear-gradient(135deg, rgba(0,210,255,0.06), rgba(58,123,213,0.04));
    border-color: rgba(0, 210, 255, 0.2);
}

.access-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-purple);
    margin-bottom: 0.8rem !important;
}

.visitor-access .access-title { color: #0088bb; }

.access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.access-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    padding: 0.4rem 0.6rem;
}

.access-item span { font-size: 1.1rem; }

.upgrade-prompt {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    text-align: center;
}

/* ── Visitor Quick Login ── */
.visitor-quick-login {
    text-align: center;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-weight: 700;
    font-family: var(--font-heading);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dde1e9, transparent);
    border-radius: 2px;
}

/* ── Visitor Intro ── */
.visitor-intro {
    font-size: 1rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 1.5rem !important;
    padding: 0.8rem 1rem;
    background: rgba(0,210,255,0.06);
    border-radius: 12px;
    border-left: 4px solid var(--teal);
}

/* ── Footer Links ── */
.auth-footer-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
}

.auth-footer-links p {
    font-size: 1rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
    font-weight: 600 !important;
}

.link-muted {
    color: var(--text-muted);
    font-weight: 700;
    transition: color 0.2s;
}

.link-muted:hover { color: var(--primary-purple); }

/* ── Slide Down Animation ── */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Toast Notification ── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-dark);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success { background: linear-gradient(135deg, #00c88c, #00a070); }
.toast.error   { background: linear-gradient(135deg, var(--primary-red), #cc0033); }
.toast.info    { background: var(--gradient-cool); }

/* ── Responsive ── */
@media (max-width: 700px) {
    .auth-main {
        padding: 100px 1rem 3rem;
    }

    .auth-header h1 {
        font-size: 2.1rem;
    }

    .tier-cards {
        grid-template-columns: 1fr;
    }

    .auth-form-card {
        padding: 1.8rem 1.4rem;
    }

    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tier-card.active {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .auth-header h1 { font-size: 1.8rem; }
    .access-grid { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   MEMBERSHIP CODE MODAL (shown after registration)
   ============================================================ */
#mc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 50, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#mc-modal-overlay.mc-visible { opacity: 1; }

.mc-modal {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(155, 81, 224, 0.25);
    transform: translateY(20px);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}
#mc-modal-overlay.mc-visible .mc-modal { transform: translateY(0); }

.mc-modal-badge {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.mc-modal h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.mc-modal-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Code display block */
.mc-code-block {
    background: linear-gradient(135deg, rgba(155,81,224,0.07), rgba(0,210,255,0.05));
    border: 2px solid rgba(155,81,224,0.2);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    margin-bottom: 1.25rem;
}

.mc-code-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.mc-code-display {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: clamp(1.35rem, 5vw, 1.9rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-purple);
    background: rgba(155, 81, 224, 0.06);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.85rem;
    word-break: break-all;
    user-select: all;
    cursor: text;
    line-height: 1.3;
}

.mc-copy-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 0.55rem 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(155,81,224,0.3);
}


