/* StretchLAB Mindbody OAuth frontend styles */
/* Scoped under .sl-mb- prefix. Brand accent: #C8E000 */

/* -------------------------------------------------------------------------
   Interstitial overlay
   ------------------------------------------------------------------------- */

#sl-mb-interstitial {
    position: fixed;
    inset: 0;
    background: #C8E000;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-in;
}

#sl-mb-interstitial.sl-mb-visible {
    opacity: 1;
    pointer-events: all;
}

.sl-mb-interstitial__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.sl-mb-interstitial__logo svg {
    width: 160px;
    height: auto;
}

.sl-mb-interstitial__message {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.02em;
    margin: 0;
}

.sl-mb-interstitial__dots {
    display: flex;
    gap: 6px;
}

.sl-mb-interstitial__dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #000;
    opacity: 0.3;
    animation: sl-mb-pulse 1.2s ease-in-out infinite;
}

.sl-mb-interstitial__dots span:nth-child(2) { animation-delay: 0.2s; }
.sl-mb-interstitial__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes sl-mb-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.3); }
}

/* -------------------------------------------------------------------------
   Sign-in button
   ------------------------------------------------------------------------- */

.sl-mb-signin-btn {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* -------------------------------------------------------------------------
   Account bar (nav widget)
   ------------------------------------------------------------------------- */

.sl-mb-account-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.sl-mb-account-bar__label,
.sl-mb-account-bar__name {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Loading shimmer for greeting */
.sl-mb-greeting-loading {
    display: inline-block;
    width: 80px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: sl-mb-shimmer 1.4s infinite;
}

@keyframes sl-mb-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* -------------------------------------------------------------------------
   Welcome page
   ------------------------------------------------------------------------- */

.sl-mb-welcome {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}

.sl-mb-welcome__greeting {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #000;
}

.sl-mb-welcome__sub {
    font-size: 16px;
    color: #555;
    margin: 0 0 40px;
}

.sl-mb-welcome__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.sl-mb-welcome__cta {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s;
}

.sl-mb-welcome__cta--primary {
    background: #C8E000;
    color: #000;
}

.sl-mb-welcome__cta--primary:hover {
    background: #b8d000;
    color: #000;
}

.sl-mb-welcome__cta--secondary {
    background: transparent;
    color: #000;
    border: 1.5px solid #000;
}

.sl-mb-welcome__cta--secondary:hover {
    background: #000;
    color: #fff;
}

.sl-mb-welcome__loading {
    font-size: 16px;
    color: #999;
}

/* -------------------------------------------------------------------------
   Reset password page
   ------------------------------------------------------------------------- */

.sl-mb-reset {
    max-width: 480px;
    margin: 60px auto;
    padding: 0 24px;
}

.sl-mb-reset__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
}

.sl-mb-reset__intro {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 28px;
}

.sl-mb-reset__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sl-mb-reset__input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid #ccc;
    border-radius: 2px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.sl-mb-reset__input:focus {
    border-color: #000;
}

.sl-mb-reset__submit {
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #C8E000;
    color: #000;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s;
    align-self: flex-start;
}

.sl-mb-reset__submit:hover  { background: #b8d000; }
.sl-mb-reset__submit:disabled { opacity: 0.5; cursor: not-allowed; }

.sl-mb-reset__feedback {
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: 2px;
    display: none;
}

.sl-mb-reset__feedback--success {
    background: #f0f9e0;
    border: 1px solid #C8E000;
    color: #2a3d00;
}

.sl-mb-reset__feedback--error {
    background: #fff0f0;
    border: 1px solid #ffaaaa;
    color: #800000;
}

.sl-mb-reset__return {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Degraded banner offset for dev bar
   ------------------------------------------------------------------------- */

body.sl-mb-dev #sl-mb-degraded-banner {
    bottom: 36px;
}
