/* ========================================================================
   Module Sign-In — Environment-Aware Login Enhancement
   Adds environment badge and host-aware tweaks on top of login-modern.css
   ======================================================================== */

/* ── Environment Indicator Dot ────────────────────────────────────── */

.env-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.env-indicator .env-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: envPulse 2s infinite;
}

.env-indicator--production {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.env-indicator--production .env-dot {
    background: #10B981;
}

.env-indicator--cms-production {
    background: rgba(37, 99, 235, 0.1);
    color: #60A5FA;
}

.env-indicator--cms-production .env-dot {
    background: #2563EB;
}

.env-indicator--development {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.env-indicator--development .env-dot {
    background: #F59E0B;
}

.env-indicator--demo {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.env-indicator--demo .env-dot {
    background: #8B5CF6;
}

@keyframes envPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Module Sign-In Domain Label ──────────────────────────────────── */

.signin-domain {
    font-size: 0.6875rem;
    color: var(--text-dim, #64748b);
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 0.02em;
    margin-top: 8px;
}

/* ── Plexus SSO Button ────────────────────────────────────────────── */

.btn-plexus-sso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    color: #A78BFA;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    margin-top: 12px;
}

.btn-plexus-sso:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15));
    border-color: rgba(139, 92, 246, 0.4);
    color: #C4B5FD;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-plexus-sso .plexus-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
}

/* CMS variant */
.cms-login .btn-plexus-sso {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.08));
    border-color: rgba(37, 99, 235, 0.2);
    color: #60A5FA;
}

.cms-login .btn-plexus-sso:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.15));
    border-color: rgba(37, 99, 235, 0.4);
    color: #93C5FD;
}

/* ── Divider ──────────────────────────────────────────────────────── */

.signin-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-dim, #64748b);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.signin-divider::before,
.signin-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border, rgba(255, 255, 255, 0.06));
}
