.modal-backdrop {
    z-index: 9999;
}
#registerModal {
    z-index: 99999;
}

#registerModal .modal-content {
    overflow: hidden;
    position: relative;
}

#registerModal .modal-body {
    padding: 0;
}

.reg-modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.reg-modal-close-btn:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* Left panel - sign up buttons */
#registerModal .modal-body > .row > .col-12:first-child {
    padding: 24px 28px !important;
}

#registerModal .loginButton {
    padding: 11px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    width: 100%;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    text-decoration: none;
}
#registerModal .loginButton:focus {
    outline: none;
    box-shadow: none;
}
#registerModal .loginButton:hover {
    border-color: #b0b8c4;
    background: #f1f3f6;
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
    transform: translateY(-1px);
    text-decoration: none;
}

#registerModal .loginContainerButton {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
#registerModal .loginContainerButton img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
#registerModal .loginContainerButton div {
    font-size: 14px;
    color: #333;
}

#registerModal .buttonsContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Right panel - purple gradient info */
.reg-modal-info-panel {
    background: linear-gradient(135deg, #7052fb 0%, #5a3fd8 50%, #4a2fc9 100%);
    border-radius: 0 0 0.5em 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}
.reg-modal-info-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.reg-modal-info-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
}

.reg-modal-info-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.3;
}

/* Checklist */
.reg-modal-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.reg-modal-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    line-height: 1.4;
}
.reg-modal-check-item svg {
    flex-shrink: 0;
}

/* Stats */
.reg-modal-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.reg-modal-stat {
    text-align: center;
    flex: 1;
}
.reg-modal-stat-number {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
}
.reg-modal-stat-label {
    color: rgba(255,255,255,0.65);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Brands */
.reg-modal-brands {
    margin-bottom: 18px;
}
.reg-modal-brands-label {
    color: rgba(255,255,255,0.55);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}
.reg-modal-brands-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.reg-modal-brands-logos img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.2s;
}
.reg-modal-brands-logos img:hover {
    opacity: 1;
}

/* MCP Badge */
.reg-modal-mcp-badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 14px;
    backdrop-filter: blur(4px);
}
.reg-modal-mcp-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.reg-modal-mcp-icon i {
    color: #fff;
    font-size: 13px;
}
.reg-modal-mcp-title {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.reg-modal-mcp-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    line-height: 1.4;
}

/* Already registered link */
.alreadyRegistered {
    font-size: 14px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 0.3rem;
}
.alreadyRegistered a {
    text-decoration: underline !important;
}
.alreadyRegistered a:hover {
    color: #0056b3;
}

/* Legacy classes kept for compatibility */
.or-container {
    align-items: center;
    color: #ccc;
    display: flex;
    margin: 15px 0;
}
.line-separator {
    background-color: #ccc;
    flex-grow: 5;
    height: 1px;
}
.boxed-btn-modal {
    background-color: #2ac4b5;
    color: #fff;
    border: 1px solid #2ac4b5;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}
.boxed-btn-modal:hover {
    background-color: #7052fb;
    border-color: #7052fb;
}
.extra-login {
    color: black;
    border: 1px solid black;
    transition: all 0.3s ease 0s;
}
.extra-login:hover {
    background-color: #7052fb;
    color: white;
}
.check {
    display: inline-block;
    width: 2em;
    height: 2em;
    background-color: #e1e5fc;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}
.check::after {
    content: "\2713";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #5e60ce;
}
.paragraph {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}
.paragraph__text {
    font-weight: bold;
    font-size: 1.2rem;
}
#label_register {
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}
.input-register {
    border-radius: 5px;
    border: 1px solid #d1d5db;
    padding: 0.5rem;
}
.input-register:focus {
    outline: none;
    border: 1px solid #a5b4fc;
}
.sign-up {
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    border-radius: 5px;
    color: white;
    background-color: #7052fb;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}
.sign-up:hover {
    transition: all 0.3s ease 0s;
    background-color: #2ac4b5;
}
.sign-up-alertative {
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    border-radius: 5px;
    color: white;
    background-color: #7052fb;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease 0s;
}
.sign-up-alertative:hover {
    text-decoration: none;
    color: white;
    background-color: #2ac4b5;
    transition: all 0.3s ease 0s;
}

/* Responsive: on mobile the purple panel is hidden via d-none d-lg-flex */
@media screen and (max-width: 991px) {
    .login-shape {
        display: none;
    }
    .login-image {
        display: none;
    }
    .alreadyRegistered {
        margin-top: 1rem;
    }
    #registerModal .modal-body > .row > .col-12:first-child {
        padding: 20px !important;
    }
}

@media (min-width: 992px) {
    #registerModal .modal-lg,
    #registerModal .modal-xl {
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    #registerModal .modal-xl {
        max-width: 920px;
    }
}
