*::-webkit-scrollbar-button:end:decrement,
*::-webkit-scrollbar-button:start:increment {
  height: 2%;
  display: block;
  background: transparent;

}

/*  Login-specific styles  */

/* Narrow card for login (less fields) */
.rl-container.login-card {
    max-width: 440px;
}

/* Full-page blocking modal behavior for login view */
body.reg-log.login {
    overflow: hidden;
}

body.reg-log.login::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(9, 13, 28, 0.56);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 10000000;
}

body.reg-log.login > * {
    pointer-events: none;
}

body.reg-log.login .rl-container.login-card,
body.reg-log.login .rl-container.login-card * {
    pointer-events: auto;
}

body.reg-log.login .rl-container.login-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: min(92vw, 440px);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10000001;
    padding-top: 2.9rem;
}

body.reg-log.login .rl-container.login-card .rl-scroll-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    width: calc(100% + 1.25rem);
    margin-right: -1.25rem;
    padding-right: 1.25rem;
    scrollbar-gutter: stable;
}

.login-modal-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    color: #555;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
    z-index: 10000002;
}

.login-modal-close:hover {
    transform: scale(1.04);
    color: #111;
}

@media (max-width: 680px) {
    body.reg-log.login .rl-container.login-card .rl-scroll-content {
        width: calc(100% + 0.625rem);
        margin-right: -0.625rem;
        padding-right: 0.625rem;
    }
}

/*  Activation pending banner  */

.rl-activation {
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: #fffbeb;
    border: 1.5px solid #fbbf24;
    color: #92400e;
}

.rl-activation strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.rl-activation p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.rl-activation .resend-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.45rem 1rem;
    background: #fbbf24;
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.rl-activation .resend-btn:hover {
    background: #f59e0b;
}

/*  Forgot password link  */

.rl-forgot {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

.rl-forgot a {
    font-size: 0.82rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rl-forgot a:hover {
    color: var(--dark-pink);
}
